Stream splitter using new streams
Want to see pretty graphs? Log in now!
npm install splitter
|8||downloads in the last week|
|21||downloads in the last month|
|Last Published By|
|Version||0.1.2 last updated 7 months ago|
Splitter is a more or less direct port of the old streams module
split using streams2, and is thus dependency free (apart from node ~0.10 and its core libs).
Pipe things through it. It's a
var splitter = require('splitter'); process.stdin.pipe(splitter()).process.stdout();
This will split by the default '\n' character and send data by line to stdout.
First argument to splitter is the thing to split by, which can either be a string or a regex.
Install development dependencies
$ npm install
Run the tests
$ npm test
MIT-Licensed. See LICENSE file for details.