Popularity
0.9
Growing
Activity
0.0
Declining
7
8
1

Monthly Downloads: 0
Programming language: JavaScript
License: MIT License
Tags: Node.Js     Polyfills     Index     Ponyfill     Polyfill     Shim     Core     Has     Contains     Indexof     Includes     Buffers     Buffer     Builtin    
Latest version: v2.0.0

buffer-includes alternatives and similar modules

Based on the "Node.Js" category

Do you think we are missing an alternative of buffer-includes or a related project?

Add another 'Node.Js' Module

README

Deprecated

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


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.

License

MIT © Sindre Sorhus


*Note that all licence references and agreements mentioned in the buffer-includes README section above are relevant to that project's source code only.