pipe-lines
v0.1.2
Published
A Stream pipe to split the stream into lines
Downloads
2
Maintainers
Readme
Pipe lines
A Stream pipe to split the stream into lines
--
Example:
var PipeLines = require('pipe-lines');
var pipeLines = new PipeLines();
pipeLines.on('data', function(data) {
console.log('|'+data+'|');
});
var readStream = process.stdin;
readStream.pipe(pipeLines);
You can run test with:
cat README.md | node example.js