Launch Week Day 2: Introducing Reports: An Extensible Reporting Framework for Socket Data.Learn More
Socket
Book a DemoSign in
Socket

readfile-line

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

readfile-line

Read a file line by line (stream)

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source
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

Keywords

read

FAQs

Package last updated on 10 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts