Node.js `buffer.includes()` ponyfill
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.editorconfig
.gitattributes
.gitignore
.travis.yml
index.js
license
package.json
readme.md
test.js

readme.md

buffer-includes Build Status

Node.js buffer.includes() ponyfill

Install

$ npm install --save buffer-includes

Usage

const bufferIncludes = require('buffer-includes');

bufferIncludes(new Buffer('unicorn'), 'corn');
//=> true

API

bufferIncludes(buffer, needle, byteOffset)

See the buffer.includes() docs for more details.

Related

License

MIT © Sindre Sorhus