0.0.1 • Published 8 years ago
node-text-stream-search v0.0.1
Node.js Text Stream Search
Searches for occurrences of a given search term in a Node.js text stream
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:
- the wait command
Related Projects
- StreamSnitch: does the same thing with regular expressions, but is buggy and blocks the event queue
0.0.1
8 years ago