Popularity
0.9
Stable
Activity
0.0
Stable
6
10
1

Programming language: JavaScript
License: MIT License
Tags: Node.Js     Polyfills     Comparison     Compare     Ponyfill     Polyfill     Shim     Core     Built-in     Buffers     Buffer     Equal     Equals    
Latest version: v2.0.0

buffer-equals alternatives and similar modules

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

Do you think we are missing an alternative of buffer-equals or a related project?

Add another 'Node.Js' Module

README

buffer-equals Build Status

Node.js buffer.equals() ponyfill

Deprecated: Just use Buffer#equals(). It has been available since Node.js 0.12.

Install

$ npm install --save buffer-equals

Usage

const bufferEquals = require('buffer-equals');

bufferEquals(new Buffer('foo'), new Buffer('foo'));
//=> true

bufferEquals(new Buffer('foo'), new Buffer('bar'));
//=> false

API

See the buffer.equals() docs.

The only difference is that you pass in the buffer as the first argument instead of calling the .equals() method on the buffer instance.

Related

License

MIT © Sindre Sorhus


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