# line-by-line-reader

> A promise based javascript package for reading contents of a file in a line by line fashion

Latest version **1.0.1** (published 2020-03-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install line-by-line-reader
pnpm add line-by-line-reader
yarn add line-by-line-reader
bun add line-by-line-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.1 |
| Published | 2020-03-03 |
| First published | 2020-03-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Olanrewaju A. Olaboye |
| Maintainers | wonderfulboye |
| Keywords | file, file reader, line, line by line |

## Links

- npm: https://www.npmjs.com/package/line-by-line-reader
- Repository: https://github.com/WonderfulOlanrewaju/line-by-line-reader
- Homepage: https://github.com/WonderfulOlanrewaju/line-by-line-reader#readme
- Issues: https://github.com/WonderfulOlanrewaju/line-by-line-reader/issues
- npm.io page: https://npm.io/package/line-by-line-reader

## 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

- 1.0.1 (latest) — 2020-03-03
- 1.0.0 — 2020-03-01

## README

# Line Reader

A promise based and zero dependency javascript package for reading contents of a file in a line by line fashion

```Js
const lineReader = require ('line-by-line-reader');

// Grab your file from its path where you have it
let filepath = "path/to/your/file";

// call lineReader function get with filepath as argument
lineReader(filepath)
  .then(fileContent => {
    console.log(fileContent);
    console.log(fileContent.lines);
    console.log(fieContent.length);
  })
  .catch(err => {
    console.log(err);
  });
```

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