jaslo / streamline

Promise based line reader, takes a stream

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

streamline

Promise based line reader, takes a stream

to use

open readable stream and supply to constructor

//obtain a readable stream: readstrm = getreadstream(...)

var sl = new streamLine(readstrm, optional delimeter string!);

while (!done) { sl.readLine(). then(function(line) { if (!line) done = true; else { ... ... }); }

About

Promise based line reader, takes a stream


Languages

Language:JavaScript 100.0%