wishthis/node_modules/buffer-equal/example/eq.js

17 lines
263 B
JavaScript
Raw Normal View History

2022-11-30 12:56:09 +00:00
'use strict';
2022-01-21 08:28:41 +00:00
var bufferEqual = require('../');
console.dir(bufferEqual(
2022-11-30 12:56:09 +00:00
new Buffer([253, 254, 255]),
new Buffer([253, 254, 255])
2022-01-21 08:28:41 +00:00
));
console.dir(bufferEqual(
2022-11-30 12:56:09 +00:00
new Buffer('abc'),
new Buffer('abcd')
2022-01-21 08:28:41 +00:00
));
console.dir(bufferEqual(
2022-11-30 12:56:09 +00:00
new Buffer('abc'),
'abc'
2022-01-21 08:28:41 +00:00
));