FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

sindresorhus/buffer-includes: Node.js `buffer.includes()` ponyfill · GitHub

This repository was archived by the owner on Jan 23, 2021. It is now read-only.

Deprecated

Just use Buffer#includes(). It has been available since Node.js 6.


buffer-includes

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

About

Node.js `buffer.includes()` ponyfill

Topics

Resources

Code of conduct

Contributing

Stars

9 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages


Back | FazBrowse Home | New Git URL