Popularity
0.7
Stable
Activity
0.6
Stable
3
8
0

Code Quality Rank: L4
Monthly Downloads: 59
Programming language: JavaScript
License: MIT License
Tags: Node.Js     Polyfills     Index     Ponyfill     Polyfill     Shim     Core     Built-in     Has     Contains     Indexof     Buffers     Buffer     Builtin    

buf-indexof alternatives and similar modules

Based on the "Node.Js" category

Do you think we are missing an alternative of buf-indexof or a related project?

Add another 'Node.Js' Module

README

Deprecated

Just use Buffer#indexOf(). It has been available since Node.js 4.


buf-indexof Build Status

Node.js Buffer#indexOf() ponyfill

Install

$ npm install --save buf-indexof

Usage

var bufIndexof = require('buf-indexof');

bufIndexof(new Buffer('unicorn'), 'corn');
//=> 3

API

See the buffer.indexOf() docs.

The only difference is that you pass in the buffer as the first argument instead of calling the .indexOf() method on the buffer instance.

License

MIT © Sindre Sorhus


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