You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dienianindya
8bd65e0bb9
|
2 months ago | |
---|---|---|
.. | ||
test | 2 months ago | |
.eslintrc | 2 months ago | |
.npmignore | 2 months ago | |
.travis.yml | 2 months ago | |
LICENSE | 2 months ago | |
README.md | 2 months ago | |
index.js | 2 months ago | |
package.json | 2 months ago |
README.md
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