# reverse-read-line

> read text file line by line from end.

Latest version **0.2.0** (published 2022-04-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install reverse-read-line
pnpm add reverse-read-line
yarn add reverse-read-line
bun add reverse-read-line
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2022-04-12 |
| First published | 2018-01-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 12 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | wmzy |
| Maintainers | wmzy |
| Keywords | readline, reverse, tail |

## Links

- npm: https://www.npmjs.com/package/reverse-read-line
- Repository: https://github.com/wmzy/reverse-read-line
- Homepage: https://github.com/wmzy/reverse-read-line#readme
- Issues: https://github.com/wmzy/reverse-read-line/issues
- npm.io page: https://npm.io/package/reverse-read-line

## Alternatives

- [@sveltejs/kit](https://npm.io/package/@sveltejs/kit.md) — 2.2M weekly downloads
- [@atlaskit/theme](https://npm.io/package/@atlaskit/theme.md) — 402.0K weekly downloads
- [@tangle-network/brand](https://npm.io/package/@tangle-network/brand.md) — 10.0K weekly downloads
- [seneca](https://npm.io/package/seneca.md) — 7.4K weekly downloads
- [@bsb/base](https://npm.io/package/@bsb/base.md) — 7.2K weekly downloads

## Recent versions

- 0.2.0 (latest) — 2022-04-12
- 0.1.5 — 2022-04-12
- 0.1.4 — 2018-09-15
- 0.1.3 — 2018-01-19
- 0.1.2 — 2018-01-17
- 0.1.1 — 2018-01-17
- 0.1.0 — 2018-01-14

## README

[![Build Status](https://travis-ci.org/wmzy/reverse-read-line.svg?branch=master)](https://travis-ci.org/wmzy/reverse-read-line)
[![Coverage Status](https://coveralls.io/repos/github/wmzy/reverse-read-line/badge.svg?branch=master)](https://coveralls.io/github/wmzy/reverse-read-line?branch=master)
# reverse-read-line

> Read text file line by line from end.

## install

```bash
npm install reverse-read-line
```

## Usage

```javascript
import * as rrl from 'reverse-read-line';

const reader = rrl.create(filename, options); 
const lines = await reader.readLines(2);
await reader.close();
console.log(lines);

```

stream:

```javascript
import * as rrl from 'reverse-read-line';

const stream = rrl.createStream(filename, options); 
stream.on('data', (line) => {
  console.log(line);
});

```

read lines:

```javascript
import * as rrl from 'reverse-read-line';

const lines = await rrl.readLines(filename, 5, options); 
console.log(lines);

```

Options:

| name       | type   | default   | description
| :--------: | :----: | :-------: | :-----
| encoding   | string | 'utf8'    | the file encoding
| bufferSize | number | 4096      | the size will be read once
| separator  | string | undefined | line separator. if undefined it will auto judging

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