Stream split library using new streams (node >= 0.10)
JavaScript
Latest commit 1ec84cf Oct 1, 2013 @clux 0.1.2
Permalink
Failed to load latest commit information.
test
.gitignore
.travis.yml
LICENSE
README.md
package.json
splitter.js

README.md

Splitter Build Status Dependency Status

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).

Usage

Pipe things through it. It's a Transform stream.

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.

Running tests

Install development dependencies

$ npm install

Run the tests

$ npm test

License

MIT-Licensed. See LICENSE file for details.