buffer-indexof-polyfill
This is a polyfill for Buffer#indexOf introduced in NodeJS 4.0.
Last updated 6 years ago by sarosia .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install buffer-indexof-polyfill 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.2                                ...           latest (6 years ago)

3 Versions

  • 1.0.2                                ...           6 years ago
  • 1.0.1                                ...           10 years ago
  • 1.0.0                                ...           11 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 3
Last Month 0
Dependencies (0)
None
Dev Dependencies (3)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |