Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

read-lines

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

read-lines

Line by line big file async reader

  • 0.1.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Build Status Coverage Status

read-lines

Read big files, line by line.

npm install read-lines

##Usage The module emits the first line and then stops until you call the
next() callback, in this way you can make async stuff with your line
and call next() when your are done.

var ReadLines = require('read-lines');
var file = new ReadLines('/path/to/my/file');

file.on('open', function() {
  //call read for start reading the first line
  file.read(); 
});

file.on('line', function(line, next) {
  console.log(line);
  //You call next to get the next line
  next();
});

file.on('error', function(err) {
  // handle here the errors
});

Keywords

FAQs

Package last updated on 28 Jan 2014

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc