pipe-lines

A Stream pipe to split the stream into lines

Usage no npm install needed!

<script type="module">
  import pipeLines from 'https://cdn.skypack.dev/pipe-lines';
</script>

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