Skip to content

Makes it easier to digest the output stream from a child process

License

Notifications You must be signed in to change notification settings

diamondio/input-stream-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Input process parser

Makes it easier to digest an input stream with a delimiter

Getting Started

npm install --save input-stream-parser

Usage

var parser = require('input-stream-parser');
var file = fs.createReadStream('somefile.txt');
parser(file, '\n', function (line, cb) {
  // Will be called on every line of the file (one after the other)
  cb();
}, function () {
  // This will run when finished.
})

Contributions welcome!

Credits

This library was initially made by the awesome team of engineers at Diamond.

If you haven't already, make sure you install Diamond!

About

Makes it easier to digest the output stream from a child process

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published