buffer-indexof-polyfill

1.0.2 • Public • Published

buffer-indexof-polyfill

Build Status NPM Version NPM Downloads

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

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i buffer-indexof-polyfill

Weekly Downloads

2,683,874

Version

1.0.2

License

MIT

Unpacked Size

11.4 kB

Total Files

8

Last publish

Collaborators

  • sarosia