wallet-core/node_modules/buf-compare/readme.md
2017-05-28 00:40:43 +02:00

922 B

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.

License

MIT © Sindre Sorhus