Skip to content
JS
Package

buf-compare

Node.js `Buffer.compare()` ponyfill

v2.0.0, 24 Sept 2018MIT-Types: NonePolyfills and shims
$ npm install buf-compare
Deprecated on npm
Just use `Buffer.compare()`. It has been available since Node.js 0.12.

Key numbers

As of 25 Sept 2026
Weekly downloads
464.1k
+67% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
8 years ago
v2.0.0
GitHub stars
8
2 forks
Open issues / PRs
0 / 0
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
0200k400k600kSept 2025Mar 2026Sept 2026High 593.1k (25 Aug 2026)Low 94.2k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

464,051 downloads last week, 2,124,825 in the last month. The 12-month change of +67% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
03 in total
Latest version
2.0.0, 24 Sept 20188 years ago
First published
9 May 2015
Last push to GitHub
23 Jan 20212,070 days before the snapshot
Repository archived
Yes
Open issues
0
Open pull requests
0
Commits, last 52 weeks
0
Dependents on npm
-

Major versions

  1. v2 first release 2.0.0, 24 Sept 2018
  2. v1 first release 1.0.0, 9 May 2015

Recent releases

VersionPublished
2.0.024 Sept 2018
1.0.130 Sept 2016
1.0.09 May 2015
Module format
-Not determined from package.json
TypeScript types
None
Node.js engine range
>=0.10.0
Runtimes
-
Unpacked size (npm)
3.2 kB
Dependencies (0)
None
npm install buf-compare
  • jsDelivrhttps://cdn.jsdelivr.net/npm/buf-compare@2.0.0/
  • unpkghttps://unpkg.com/buf-compare@2.0.0/
  • esm.shhttps://esm.sh/buf-compare@2.0.0
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): deprecated.