@apla/buffer-indexof-polyfill
v1.1.0
Published
This is a polyfill for Buffer#indexOf introduced in NodeJS 4.0.
Downloads
3
Readme
buffer-indexof-polyfill
This is a polyfill for Buffer#indexOf
and Buffer#lastIndexOf introduced in NodeJS 4.0.
Example
require("buffer-indexof-polyfill");
new Buffer("buffer").indexOf("uff") // return 1
new Buffer("buffer").indexOf("abc") // return -1
Installation
npm install buffer-indexof-polyfill