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.
|
|
2 years ago | |
|---|---|---|
| .. | ||
| test | 2 years ago | |
| .eslintrc | 2 years ago | |
| .travis.yml | 2 years ago | |
| LICENSE | 2 years ago | |
| README.md | 2 years ago | |
| index.js | 2 years ago | |
| init-buffer.js | 2 years ago | |
| package.json | 2 years 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