thedesk/app/node_modules/buffer-equal/example/eq.js
2019-09-12 23:38:13 +09:00

15 lines
262 B
JavaScript

var bufferEqual = require('../');
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'
));