Negligible Psychological Misery

    pipe-lines

    0.1.2 • Public • Published

    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
    

    Install

    npm i pipe-lines

    DownloadsWeekly Downloads

    2

    Version

    0.1.2

    License

    MIT

    Last publish

    Collaborators

    • morphar