# read-lines

> Line by line big file async reader

Latest version **0.1.4** (published 2014-01-28) · BSD license · 0 weekly downloads

## Install

```sh
npm install read-lines
pnpm add read-lines
yarn add read-lines
bun add read-lines
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2014-01-28 |
| First published | 2014-01-23 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | alfonsodev |
| Maintainers | alfonsodev |
| Keywords | line, read, big, file, line, reader, line, by, line, read, lines |

## Links

- npm: https://www.npmjs.com/package/read-lines
- Repository: http://github.com/alfonsodev/read-lines
- Homepage: https://github.com/alfonsodev/read-lines
- Issues: https://github.com/alfonsodev/read-lines/issues
- npm.io page: https://npm.io/package/read-lines

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 0.1.4 (latest) — 2014-01-28
- 0.1.3 — 2014-01-28
- 0.1.2 — 2014-01-23
- 0.1.1 — 2014-01-23

## README

[![Build Status](https://travis-ci.org/alfonsodev/read-lines.png?branch=master)](https://travis-ci.org/alfonsodev/read-lines) [![Coverage Status](https://coveralls.io/repos/alfonsodev/read-lines/badge.png)](https://coveralls.io/r/alfonsodev/read-lines)

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
    });

---
_Source: https://npm.io/package/read-lines · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
