Popularity
0.8
Stable
Activity
0.0
Stable
7
8
1

Monthly Downloads: 0
Programming language: JavaScript
License: MIT License
Tags: Node.Js     Polyfills     Comparison     Compare     Ponyfill     Polyfill     Shim     Core     Built-in     Buffers     Buffer     Order     Sort    
Latest version: v2.0.0

buf-compare alternatives and similar modules

Based on the "Node.Js" category.
Alternatively, view buf-compare alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of buf-compare or a related project?

Add another 'Node.Js' Module

README

Deprecated

Just use Buffer.compare(). It has been available since Node.js 0.12.


buf-compare Build Status

Node.js Buffer.compare() ponyfill

Install

$ npm install --save buf-compare

Usage

var bufCompare = require('buf-compare');

bufCompare(new Buffer('a'), new Buffer('a'));
//=> 0

bufCompare(new Buffer('a'), new Buffer('b'));
//=> -1

API

See the Buffer.compare() docs.

Related

License

MIT © Sindre Sorhus


*Note that all licence references and agreements mentioned in the buf-compare README section above are relevant to that project's source code only.