# file-lines-reader

> Read some lines from a file

Latest version **1.0.0** (published 2016-08-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install file-lines-reader
pnpm add file-lines-reader
yarn add file-lines-reader
bun add file-lines-reader
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-08-03 |
| First published | 2016-08-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Nick Watts |
| Maintainers | nawatts |
| Keywords | file-reader, partial |

## Links

- npm: https://www.npmjs.com/package/file-lines-reader
- Repository: https://github.com/nawatts/file-lines-reader
- Issues: https://github.com/nawatts/file-lines-reader/issues
- npm.io page: https://npm.io/package/file-lines-reader

## Recent versions

- 1.0.0 (latest) — 2016-08-03

## README

# file-lines-reader

Read some lines from a file.

[FileReader](https://developer.mozilla.org/en-US/docs/Web/API/FileReader) reads all file content at once. This
slices a file into smaller chunks and reads one at a time until the desired number of lines are found.


```JavaScript
var reader = new FileLinesReader(/* File or Blob */ file);

reader.readLines(3).then(function(lines) {
  console.log(lines); // ["line1", "line2", "line3"]
});

reader.readLines(1).then(function(lines) {
  console.log(lines); // ["line4"]
});
```

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