{"name":"buffer-indexof","description":"find the index of a buffer in a buffe","version":"0.0.0","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.0","dist":{"shasum":"f9eb3eb95f03a171554bb127450b20f64aa8e5c2","tarball":"http://registry-npm.ywwl.com/buffer-indexof/download/buffer-indexof-0.0.0.tgz","integrity":"sha512-tip8QtNRMwThEAxWLCQKTxD5jBgZRW5fGkJGzGuMdK/5JylZpdy0G+Rga5SZ1ufnJU3VoIVpZyuZ55JdhvIc4g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA8h8bB8Gxcj0KiWyKQcNsyg1lcIsbOMyVTbjNfFqdlbAiEAzynmCqsQLnkNrzEcBuhj7153ZSkU3o8fVa5Nwu2dbMg="}],"size":1623,"noattachment":false,"key":"/buffer-indexof/-/buffer-indexof-0.0.0.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":1379548499523,"_cnpm_publish_time":1379548499523,"dist-tags":{"latest":"1.1.1"}}