{"name":"buffer-indexof","description":"find the index of a buffer in a buffe","version":"0.0.1","repository":{"url":"git://github.com/soldair/node-buffer-indexof.git"},"main":"index.js","scripts":{"test":"tape test/*.js"},"author":{"name":"Ryan Day"},"dependencies":{},"devDependencies":{"tape":"~1.1.0"},"bugs":{"url":"https://github.com/soldair/node-buffer-indexof/issues"},"_id":"buffer-indexof@0.0.1","dist":{"shasum":"54dda191a531250309d13b646fc1c80adeee5cf9","tarball":"http://registry-npm.ywwl.com/buffer-indexof/download/buffer-indexof-0.0.1.tgz","integrity":"sha512-dyaRyolDBHs51NjlIjroPxYkt+T7mqXGFXxmfMCeVJ63DYVzqQ30a4ddEnDJH19GBfbEKSW69k+zZjFEpcuiRg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCWav9FW8krTVEXRPmkZ+2xKx1dJBcyUagCbH6bDGlmcAIgaUFhrnLkYvYACnU7AJwrwIDSeyXS5NcSn1HtfqFAdPs="}],"size":1691,"noattachment":false,"key":"/buffer-indexof/-/buffer-indexof-0.0.1.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"soldair","email":"soldair@gmail.com"},"maintainers":[{"name":"soldair","email":"soldair@gmail.com"}],"directories":{},"readme":"[![Build Status](https://secure.travis-ci.org/soldair/node-buffer-indexof.png)](http://travis-ci.org/soldair/node-buffer-indexof)\n \n\nbuffer-indexof\n===================\n\nfind the index of a buffer in a buffer. should behave like String.indexOf etc.\n\n```js\n\nvar bindexOf = require('buffer-indexof');\n\nvar newLineBuffer = new Buffer(\"\\n\");\n\nvar b = new Buffer(\"hi\\nho\\nsilver\");\n\n\nbindexOf(b,newLineBuffer) === 2\n\n// you can also start from index\n\nbindexOf(b,newLineBuffer,3) === 5\n\n// no match === -1\n\nbindexOf(b,newLineBuffer,6) === -1\n\n\n```\n\nCHANGELOG\n----------\n\n- 1.0.0\n  - fixed issue finding multibyte needles in haystack.  thanks @imulus\n- 1.0.1\n  - fixed failing to find partial matches as pointed out by @bahaa-aidi in #2\n","publish_time":1379607980124,"_cnpm_publish_time":1379607980124,"dist-tags":{"latest":"1.1.1"}}