| 1 |
{ |
| 2 |
"_id": "buffer-indexof", |
| 3 |
"_rev": "13-cf272bc2c8ae296c237b46592313380f", |
| 4 |
"name": "buffer-indexof", |
| 5 |
"description": "find the index of a buffer in a buffer", |
| 6 |
"dist-tags": { |
| 7 |
"latest": "1.1.1" |
| 8 |
}, |
| 9 |
"versions": { |
| 10 |
"0.0.0": { |
| 11 |
"name": "buffer-indexof", |
| 12 |
"description": "find the index of a buffer in a buffe", |
| 13 |
"version": "0.0.0", |
| 14 |
"repository": { |
| 15 |
"url": "git://github.com/soldair/node-buffer-indexof.git" |
| 16 |
}, |
| 17 |
"main": "index.js", |
| 18 |
"scripts": { |
| 19 |
"test": "tape test/*.js" |
| 20 |
}, |
| 21 |
"author": { |
| 22 |
"name": "Ryan Day" |
| 23 |
}, |
| 24 |
"dependencies": {}, |
| 25 |
"devDependencies": { |
| 26 |
"tape": "~1.1.0" |
| 27 |
}, |
| 28 |
"bugs": { |
| 29 |
"url": "https://github.com/soldair/node-buffer-indexof/issues" |
| 30 |
}, |
| 31 |
"_id": "[email protected]", |
| 32 |
"dist": { |
| 33 |
"shasum": "f9eb3eb95f03a171554bb127450b20f64aa8e5c2", |
| 34 |
"tarball": "https://registry.npmjs.org/buffer-indexof/-/buffer-indexof-0.0.0.tgz" |
| 35 |
}, |
| 36 |
"_from": ".", |
| 37 |
"_npmVersion": "1.3.8", |
| 38 |
"_npmUser": { |
| 39 |
"name": "soldair", |
| 40 |
"email": "[email protected]" |
| 41 |
}, |
| 42 |
"maintainers": [ |
| 43 |
{ |
| 44 |
"name": "soldair", |
| 45 |
"email": "[email protected]" |
| 46 |
} |
| 47 |
], |
| 48 |
"directories": {} |
| 49 |
}, |
| 50 |
"0.0.1": { |
| 51 |
"name": "buffer-indexof", |
| 52 |
"description": "find the index of a buffer in a buffe", |
| 53 |
"version": "0.0.1", |
| 54 |
"repository": { |
| 55 |
"url": "git://github.com/soldair/node-buffer-indexof.git" |
| 56 |
}, |
| 57 |
"main": "index.js", |
| 58 |
"scripts": { |
| 59 |
"test": "tape test/*.js" |
| 60 |
}, |
| 61 |
"author": { |
| 62 |
"name": "Ryan Day" |
| 63 |
}, |
| 64 |
"dependencies": {}, |
| 65 |
"devDependencies": { |
| 66 |
"tape": "~1.1.0" |
| 67 |
}, |
| 68 |
"bugs": { |
| 69 |
"url": "https://github.com/soldair/node-buffer-indexof/issues" |
| 70 |
}, |
| 71 |
"_id": "[email protected]", |
| 72 |
"dist": { |
| 73 |
"shasum": "54dda191a531250309d13b646fc1c80adeee5cf9", |
| 74 |
"tarball": "https://registry.npmjs.org/buffer-indexof/-/buffer-indexof-0.0.1.tgz" |
| 75 |
}, |
| 76 |
"_from": ".", |
| 77 |
"_npmVersion": "1.3.8", |
| 78 |
"_npmUser": { |
| 79 |
"name": "soldair", |
| 80 |
"email": "[email protected]" |
| 81 |
}, |
| 82 |
"maintainers": [ |
| 83 |
{ |
| 84 |
"name": "soldair", |
| 85 |
"email": "[email protected]" |
| 86 |
} |
| 87 |
], |
| 88 |
"directories": {} |
| 89 |
}, |
| 90 |
"0.0.2": { |
| 91 |
"name": "buffer-indexof", |
| 92 |
"description": "find the index of a buffer in a buffe", |
| 93 |
"version": "0.0.2", |
| 94 |
"repository": { |
| 95 |
"url": "git://github.com/soldair/node-buffer-indexof.git" |
| 96 |
}, |
| 97 |
"main": "index.js", |
| 98 |
"scripts": { |
| 99 |
"test": "tape test/*.js" |
| 100 |
}, |
| 101 |
"author": { |
| 102 |
"name": "Ryan Day" |
| 103 |
}, |
| 104 |
"dependencies": {}, |
| 105 |
"devDependencies": { |
| 106 |
"tape": "~1.1.0" |
| 107 |
}, |
| 108 |
"gitHead": "277ab0cedaf14f6d6ae18571e9dd4d0dea1981a0", |
| 109 |
"bugs": { |
| 110 |
"url": "https://github.com/soldair/node-buffer-indexof/issues" |
| 111 |
}, |
| 112 |
"homepage": "https://github.com/soldair/node-buffer-indexof", |
| 113 |
"_id": "[email protected]", |
| 114 |
"_shasum": "ed0f36b7ae166a66a7cd174c0467ae8dedf008f5", |
| 115 |
"_from": ".", |
| 116 |
"_npmVersion": "1.4.20", |
| 117 |
"_npmUser": { |
| 118 |
"name": "soldair", |
| 119 |
"email": "[email protected]" |
| 120 |
}, |
| 121 |
"maintainers": [ |
| 122 |
{ |
| 123 |
"name": "soldair", |
| 124 |
"email": "[email protected]" |
| 125 |
} |
| 126 |
], |
| 127 |
"dist": { |
| 128 |
"shasum": "ed0f36b7ae166a66a7cd174c0467ae8dedf008f5", |
| 129 |
"tarball": "https://registry.npmjs.org/buffer-indexof/-/buffer-indexof-0.0.2.tgz" |
| 130 |
}, |
| 131 |
"directories": {} |
| 132 |
}, |
| 133 |
"1.0.0": { |
| 134 |
"name": "buffer-indexof", |
| 135 |
"description": "find the index of a buffer in a buffer", |
| 136 |
"version": "1.0.0", |
| 137 |
"repository": { |
| 138 |
"url": "git://github.com/soldair/node-buffer-indexof.git" |
| 139 |
}, |
| 140 |
"main": "index.js", |
| 141 |
"scripts": { |
| 142 |
"test": "tape test/*.js" |
| 143 |
}, |
| 144 |
"author": { |
| 145 |
"name": "Ryan Day" |
| 146 |
}, |
| 147 |
"dependencies": {}, |
| 148 |
"devDependencies": { |
| 149 |
"tape": "~1.1.0" |
| 150 |
}, |
| 151 |
"gitHead": "0a087d8bbeadfaa1d89f8362f205b89699c1660c", |
| 152 |
"bugs": { |
| 153 |
"url": "https://github.com/soldair/node-buffer-indexof/issues" |
| 154 |
}, |
| 155 |
"homepage": "https://github.com/soldair/node-buffer-indexof#readme", |
| 156 |
"_id": "[email protected]", |
| 157 |
"_shasum": "0f23779be8134b56251bb91f7fe4850a2e7be6ff", |
| 158 |
"_from": ".", |
| 159 |
"_npmVersion": "2.13.4", |
| 160 |
"_nodeVersion": "0.12.4", |
| 161 |
"_npmUser": { |
| 162 |
"name": "soldair", |
| 163 |
"email": "[email protected]" |
| 164 |
}, |
| 165 |
"dist": { |
| 166 |
"shasum": "0f23779be8134b56251bb91f7fe4850a2e7be6ff", |
| 167 |
"tarball": "https://registry.npmjs.org/buffer-indexof/-/buffer-indexof-1.0.0.tgz" |
| 168 |
}, |
| 169 |
"maintainers": [ |
| 170 |
{ |
| 171 |
"name": "soldair", |
| 172 |
"email": "[email protected]" |
| 173 |
} |
| 174 |
], |
| 175 |
"directories": {} |
| 176 |
}, |
| 177 |
"1.0.1": { |
| 178 |
"name": "buffer-indexof", |
| 179 |
"description": "find the index of a buffer in a buffer", |
| 180 |
"version": "1.0.1", |
| 181 |
"repository": { |
| 182 |
"url": "git://github.com/soldair/node-buffer-indexof.git" |
| 183 |
}, |
| 184 |
"main": "index.js", |
| 185 |
"scripts": { |
| 186 |
"test": "tape test/*.js" |
| 187 |
}, |
| 188 |
"author": { |
| 189 |
"name": "Ryan Day" |
| 190 |
}, |
| 191 |
"dependencies": {}, |
| 192 |
"devDependencies": { |
| 193 |
"chalk": "^1.1.3", |
| 194 |
"tape": "~1.1.0" |
| 195 |
}, |
| 196 |
"gitHead": "7c33f8df621ac9fbd81c4ac577daca24a2e997e0", |
| 197 |
"bugs": { |
| 198 |
"url": "https://github.com/soldair/node-buffer-indexof/issues" |
| 199 |
}, |
| 200 |
"homepage": "https://github.com/soldair/node-buffer-indexof#readme", |
| 201 |
"_id": "[email protected]", |
| 202 |
"_shasum": "410b99b2a16b429768693c3ab4de28dc5e126eb4", |
| 203 |
"_from": ".", |
| 204 |
"_npmVersion": "3.9.0", |
| 205 |
"_nodeVersion": "4.4.4", |
| 206 |
"_npmUser": { |
| 207 |
"name": "soldair", |
| 208 |
"email": "[email protected]" |
| 209 |
}, |
| 210 |
"dist": { |
| 211 |
"shasum": "410b99b2a16b429768693c3ab4de28dc5e126eb4", |
| 212 |
"tarball": "https://registry.npmjs.org/buffer-indexof/-/buffer-indexof-1.0.1.tgz" |
| 213 |
}, |
| 214 |
"maintainers": [ |
| 215 |
{ |
| 216 |
"name": "soldair", |
| 217 |
"email": "[email protected]" |
| 218 |
} |
| 219 |
], |
| 220 |
"_npmOperationalInternal": { |
| 221 |
"host": "packages-12-west.internal.npmjs.com", |
| 222 |
"tmp": "tmp/buffer-indexof-1.0.1.tgz_1472477114459_0.530846269801259" |
| 223 |
}, |
| 224 |
"directories": {} |
| 225 |
}, |
| 226 |
"1.0.2": { |
| 227 |
"name": "buffer-indexof", |
| 228 |
"description": "find the index of a buffer in a buffer", |
| 229 |
"version": "1.0.2", |
| 230 |
"repository": { |
| 231 |
"url": "git://github.com/soldair/node-buffer-indexof.git" |
| 232 |
}, |
| 233 |
"main": "index.js", |
| 234 |
"scripts": { |
| 235 |
"test": "tape test/*.js" |
| 236 |
}, |
| 237 |
"author": { |
| 238 |
"name": "Ryan Day" |
| 239 |
}, |
| 240 |
"dependencies": {}, |
| 241 |
"devDependencies": { |
| 242 |
"chalk": "^1.1.3", |
| 243 |
"tape": "~1.1.0" |
| 244 |
}, |
| 245 |
"gitHead": "1e13002692b7bc14726bee3097ed2f501841451a", |
| 246 |
"bugs": { |
| 247 |
"url": "https://github.com/soldair/node-buffer-indexof/issues" |
| 248 |
}, |
| 249 |
"homepage": "https://github.com/soldair/node-buffer-indexof#readme", |
| 250 |
"_id": "[email protected]", |
| 251 |
"_shasum": "7fff11985ce51fe9ff07c40121ad301781587cdf", |
| 252 |
"_from": ".", |
| 253 |
"_npmVersion": "3.9.0", |
| 254 |
"_nodeVersion": "4.4.4", |
| 255 |
"_npmUser": { |
| 256 |
"name": "soldair", |
| 257 |
"email": "[email protected]" |
| 258 |
}, |
| 259 |
"dist": { |
| 260 |
"shasum": "7fff11985ce51fe9ff07c40121ad301781587cdf", |
| 261 |
"tarball": "https://registry.npmjs.org/buffer-indexof/-/buffer-indexof-1.0.2.tgz" |
| 262 |
}, |
| 263 |
"maintainers": [ |
| 264 |
{ |
| 265 |
"name": "soldair", |
| 266 |
"email": "[email protected]" |
| 267 |
} |
| 268 |
], |
| 269 |
"_npmOperationalInternal": { |
| 270 |
"host": "packages-16-east.internal.npmjs.com", |
| 271 |
"tmp": "tmp/buffer-indexof-1.0.2.tgz_1472562186192_0.4908682357054204" |
| 272 |
}, |
| 273 |
"directories": {} |
| 274 |
}, |
| 275 |
"1.1.0": { |
| 276 |
"name": "buffer-indexof", |
| 277 |
"description": "find the index of a buffer in a buffer", |
| 278 |
"version": "1.1.0", |
| 279 |
"repository": { |
| 280 |
"url": "git://github.com/soldair/node-buffer-indexof.git" |
| 281 |
}, |
| 282 |
"main": "index.js", |
| 283 |
"scripts": { |
| 284 |
"test": "tape test/*.js" |
| 285 |
}, |
| 286 |
"author": { |
| 287 |
"name": "Ryan Day" |
| 288 |
}, |
| 289 |
"dependencies": {}, |
| 290 |
"devDependencies": { |
| 291 |
"chalk": "^1.1.3", |
| 292 |
"tape": "~1.1.0" |
| 293 |
}, |
| 294 |
"gitHead": "cd1520a3a363b7f5cc231cf06b246d3fc582e92f", |
| 295 |
"bugs": { |
| 296 |
"url": "https://github.com/soldair/node-buffer-indexof/issues" |
| 297 |
}, |
| 298 |
"homepage": "https://github.com/soldair/node-buffer-indexof#readme", |
| 299 |
"_id": "[email protected]", |
| 300 |
"_shasum": "f54f647c4f4e25228baa656a2e57e43d5f270982", |
| 301 |
"_from": ".", |
| 302 |
"_npmVersion": "2.15.9", |
| 303 |
"_nodeVersion": "4.5.0", |
| 304 |
"_npmUser": { |
| 305 |
"name": "soldair", |
| 306 |
"email": "[email protected]" |
| 307 |
}, |
| 308 |
"dist": { |
| 309 |
"shasum": "f54f647c4f4e25228baa656a2e57e43d5f270982", |
| 310 |
"tarball": "https://registry.npmjs.org/buffer-indexof/-/buffer-indexof-1.1.0.tgz" |
| 311 |
}, |
| 312 |
"maintainers": [ |
| 313 |
{ |
| 314 |
"name": "soldair", |
| 315 |
"email": "[email protected]" |
| 316 |
} |
| 317 |
], |
| 318 |
"_npmOperationalInternal": { |
| 319 |
"host": "packages-16-east.internal.npmjs.com", |
| 320 |
"tmp": "tmp/buffer-indexof-1.1.0.tgz_1473953571047_0.6959979394450784" |
| 321 |
}, |
| 322 |
"directories": {} |
| 323 |
}, |
| 324 |
"1.1.1": { |
| 325 |
"name": "buffer-indexof", |
| 326 |
"description": "find the index of a buffer in a buffer", |
| 327 |
"version": "1.1.1", |
| 328 |
"repository": { |
| 329 |
"url": "git://github.com/soldair/node-buffer-indexof.git" |
| 330 |
}, |
| 331 |
"main": "index.js", |
| 332 |
"scripts": { |
| 333 |
"test": "tape test/*.js" |
| 334 |
}, |
| 335 |
"author": { |
| 336 |
"name": "Ryan Day" |
| 337 |
}, |
| 338 |
"license": "MIT", |
| 339 |
"dependencies": {}, |
| 340 |
"devDependencies": { |
| 341 |
"chalk": "^1.1.3", |
| 342 |
"tape": "~1.1.0" |
| 343 |
}, |
| 344 |
"gitHead": "9b17551f5f6949358358644757c406f4134ced5c", |
| 345 |
"bugs": { |
| 346 |
"url": "https://github.com/soldair/node-buffer-indexof/issues" |
| 347 |
}, |
| 348 |
"homepage": "https://github.com/soldair/node-buffer-indexof#readme", |
| 349 |
"_id": "[email protected]", |
| 350 |
"_npmVersion": "5.3.0", |
| 351 |
"_nodeVersion": "6.9.4", |
| 352 |
"_npmUser": { |
| 353 |
"name": "soldair", |
| 354 |
"email": "[email protected]" |
| 355 |
}, |
| 356 |
"dist": { |
| 357 |
"integrity": "sha512-4/rOEg86jivtPTeOUUT61jJO1Ya1TrR/OkqCSZDyq84WJh3LuuiphBYJN+fm5xufIk4XAFcEwte/8WzC8If/1g==", |
| 358 |
"shasum": "52fabcc6a606d1a00302802648ef68f639da268c", |
| 359 |
"tarball": "https://registry.npmjs.org/buffer-indexof/-/buffer-indexof-1.1.1.tgz" |
| 360 |
}, |
| 361 |
"maintainers": [ |
| 362 |
{ |
| 363 |
"name": "soldair", |
| 364 |
"email": "[email protected]" |
| 365 |
} |
| 366 |
], |
| 367 |
"_npmOperationalInternal": { |
| 368 |
"host": "s3://npm-registry-packages", |
| 369 |
"tmp": "tmp/buffer-indexof-1.1.1.tgz_1503366011678_0.98643086431548" |
| 370 |
}, |
| 371 |
"directories": {} |
| 372 |
} |
| 373 |
}, |
| 374 |
"readme": "[](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", |
| 375 |
"maintainers": [ |
| 376 |
{ |
| 377 |
"name": "soldair", |
| 378 |
"email": "[email protected]" |
| 379 |
} |
| 380 |
], |
| 381 |
"time": { |
| 382 |
"modified": "2017-11-27T05:57:28.386Z", |
| 383 |
"created": "2013-09-18T23:54:58.413Z", |
| 384 |
"0.0.0": "2013-09-18T23:54:59.523Z", |
| 385 |
"0.0.1": "2013-09-19T16:26:20.124Z", |
| 386 |
"0.0.2": "2014-08-22T03:09:19.834Z", |
| 387 |
"1.0.0": "2015-08-10T19:02:56.289Z", |
| 388 |
"1.0.1": "2016-08-29T13:25:16.040Z", |
| 389 |
"1.0.2": "2016-08-30T13:03:07.608Z", |
| 390 |
"1.1.0": "2016-09-15T15:32:52.426Z", |
| 391 |
"1.1.1": "2017-08-22T01:40:11.758Z" |
| 392 |
}, |
| 393 |
"author": { |
| 394 |
"name": "Ryan Day" |
| 395 |
}, |
| 396 |
"repository": { |
| 397 |
"url": "git://github.com/soldair/node-buffer-indexof.git" |
| 398 |
}, |
| 399 |
"homepage": "https://github.com/soldair/node-buffer-indexof#readme", |
| 400 |
"bugs": { |
| 401 |
"url": "https://github.com/soldair/node-buffer-indexof/issues" |
| 402 |
}, |
| 403 |
"readmeFilename": "README.md", |
| 404 |
"license": "MIT", |
| 405 |
"users": { |
| 406 |
"heineiuo": true |
| 407 |
}, |
| 408 |
"_attachments": {} |
| 409 |
} |