app php01 790c53caa0 最后一版uniaiim 10 hónapja
..
example 790c53caa0 最后一版uniaiim 10 hónapja
test 790c53caa0 最后一版uniaiim 10 hónapja
.travis.yml 790c53caa0 最后一版uniaiim 10 hónapja
README.markdown 790c53caa0 最后一版uniaiim 10 hónapja
index.js 790c53caa0 最后一版uniaiim 10 hónapja
package.json 790c53caa0 最后一版uniaiim 10 hónapja

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