{"name":"buffer-indexof","description":"find the index of a buffer in a buffe","version":"0.0.2","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"},"gitHead":"277ab0cedaf14f6d6ae18571e9dd4d0dea1981a0","bugs":{"url":"https://github.com/soldair/node-buffer-indexof/issues"},"homepage":"https://github.com/soldair/node-buffer-indexof","_id":"buffer-indexof@0.0.2","_shasum":"ed0f36b7ae166a66a7cd174c0467ae8dedf008f5","_from":".","_npmVersion":"1.4.20","_npmUser":{"name":"soldair","email":"soldair@gmail.com"},"maintainers":[{"name":"soldair","email":"soldair@gmail.com"}],"dist":{"shasum":"ed0f36b7ae166a66a7cd174c0467ae8dedf008f5","tarball":"http://registry-npm.ywwl.com/buffer-indexof/download/buffer-indexof-0.0.2.tgz","integrity":"sha512-mDMCCNLq1b+ICJ5VzS/D/Ca3bD9/3GxgCp+E+jqLwDTXHxRwQkQDfUOt4pJvmE53+YxfNNtNrxf3k/drNqJKJA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCAw6hsH+MBNSCIx4g6aGkxdXP1g4Im0K5WMiq/3SfcSwIhAP0cK6VzwVvp3WmlkvOJt4ZQxq871ufwSrsbM9a+ZTjy"}],"size":1759,"noattachment":false,"key":"/buffer-indexof/-/buffer-indexof-0.0.2.tgz"},"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":1408676959834,"_cnpm_publish_time":1408676959834,"dist-tags":{"latest":"1.1.1"}}