chunkmatcher
Fast searching for multiple patterns accross multiple data chunks.
This is useful if you have an http request that you want to search for terms and you don't want to buffer the whole response or test boundary conditions for terms between chunks.
Installation
$ npm install chunksearch
Quick Examples
var Terms = Terms; var terms = ;terms;terms;terms; var matcher = terms;matcher;matcher;matcher;console;// [// {// start: 0,// pattern: 'test'// },// {// start: 5,// pattern: 'search'// },// {// start: 24,// pattern: 'test'// },// {// start: 24,// pattern: 'testing'// },// {// start: 32,// pattern: 'test'// }// ]
var Terms = Terms; var terms = ;terms;var matcher = terms; var options = host: 'www.google.com' port: 80 path: '/index.html';http;