buf-indexof alternatives and similar modules
Based on the "Node.Js" category
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of buf-indexof or a related project?
Buffer#indexOf(). It has been available since Node.js 4.
$ npm install --save buf-indexof
var bufIndexof = require('buf-indexof'); bufIndexof(new Buffer('unicorn'), 'corn'); //=> 3
The only difference is that you pass in the buffer as the first argument instead of calling the
.indexOf() method on the buffer instance.
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.