0.0.1 • Published 8 years ago

node-text-stream-search v0.0.1

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago

Node.js Text Stream Search

Searches for occurrences of a given search term in a Node.js text stream

Circle CI

Super simple and robust way to reliably recognize text in text streams.

streamSearch = require('text-stream-search');

new TextStreamSearch(@stream).wait('hello', function() { console.log('found hello') });

// Now if the stream contains the someting including the word "hello",
// the callback above is called exactly once.

More information about:

Related Projects

  • StreamSnitch: does the same thing with regular expressions, but is buggy and blocks the event queue