sensordb2 e64a8defe5 3.17 il y a 1 an
..
example e64a8defe5 3.17 il y a 1 an
test e64a8defe5 3.17 il y a 1 an
.travis.yml e64a8defe5 3.17 il y a 1 an
LICENSE e64a8defe5 3.17 il y a 1 an
README.markdown e64a8defe5 3.17 il y a 1 an
index.js e64a8defe5 3.17 il y a 1 an
package.json e64a8defe5 3.17 il y a 1 an

README.markdown

buffer-equal

Return whether two buffers are equal.

build status

example

var bufferEqual = require('buffer-equal');

console.dir(bufferEqual(
    new Buffer([253,254,255]),
    new Buffer([253,254,255])
));
console.dir(bufferEqual(
    new Buffer('abc'),
    new Buffer('abcd')
));
console.dir(bufferEqual(
    new Buffer('abc'),
    'abc'
));

output:

true
false
undefined

methods

var bufferEqual = require('buffer-equal')

bufferEqual(a, b)

Return whether the two buffers a and b are equal.

If a or b is not a buffer, return undefined.

install

With npm do:

npm install buffer-equal

license

MIT