# faster-readline-iterator

> A fster version of readline's implementation of Symbol.asyncIterator

Latest version **0.1.0** (published 2021-12-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install faster-readline-iterator
pnpm add faster-readline-iterator
yarn add faster-readline-iterator
bun add faster-readline-iterator
```

## 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.0 |
| Published | 2021-12-27 |
| First published | 2021-12-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 13.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | farenheith |

## Links

- npm: https://www.npmjs.com/package/faster-readline-iterator
- Repository: https://github.com/Farenheith/faster-readable-iterator
- Homepage: https://github.com/Farenheith/faster-readable-iterator#readme
- Issues: https://github.com/Farenheith/faster-readable-iterator/issues
- npm.io page: https://npm.io/package/faster-readline-iterator

## Recent versions

- 0.1.0 (latest) — 2021-12-27
- 0.0.3 — 2021-12-21
- 0.0.2 — 2021-12-20
- 0.0.1 — 2021-12-20

## README

[![test-coverage](https://github.com/Farenheith/faster-readable-iterator/actions/workflows/test-coverage.yml/badge.svg)](https://github.com/Farenheith/faster-readable-iterator/actions/workflows/test-coverage.yml)
[![test](https://github.com/Farenheith/faster-readable-iterator/actions/workflows/test.yml/badge.svg)](https://github.com/Farenheith/faster-readable-iterator/actions/workflows/test.yml)

# faster-readable-iterator
A faster version for the readline's implementation of Symbol.asyncIterator.
With this version, you can achieve a performance 20% to 58% better than with the vanilla one.

# how to install

```
npm i faster-readable-iterator

```

# how to use it

Just get your readline interface:

```ts
import { createInterface } from 'readline';
import { getReadlineIterable } from 'faster-readline-iterator';

const interfaceInstance = createInterface({
    input: getLoremIpsumStream(),
});
```

Then get your iterable from it using **getReadlineIterable**:

```ts
const iterable = getReadlineIterable(interfaceInstance);

for await (const line of iterable) {
    console.log(line);
}
```

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