0.1.0 • Published 6 years ago

readfile-line v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago
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


@ Daeren @ Telegram