readfile-line
v0.1.0
Published
Read a file line by line (stream)
Downloads
2
Readme
npm -g install readfile-line
git clone https://github.com/Daeren/readfile-line.git
const readline = require("readfile-line");
//-------------]>
const num = await readline("data.xdb", await function(data, index, next) {
next();
});
...
const num = await readline("data.xdb",
function filter(data, next) {
if(!data) {
next();
}
else {
next(null, data);
}
},
function iterator(data, index, next) {
next(null);
},
/\r?\n/);
License
MIT