readfile-line

0.1.0 • Public • Published
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

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i readfile-line

    Homepage

    666.io

    Weekly Downloads

    1

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • daeren