buffer-compare-polyfill
v1.0.1
Published
Polyfills Node v0.10.x with v0.12.x `Buffer.prototype.compare` functionality.
Downloads
3
Readme
buffer-compare-polyfill
Polyfills Node v0.10.x with v0.12.x Buffer.prototype.compare
functionality.
See v.12 API Docs
Buffer('123').compare(Buffer('123')); // 0
Buffer('123').compare(Buffer('1230')); // -1
Buffer('1230').compare(Buffer('123')); // 1