# async-lines

> Get an async iterator over lines in a stream.

Latest version **1.1.0** (published 2018-05-29) · MIT license · 0 weekly downloads

## Install

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

## 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.1.0 |
| Published | 2018-05-29 |
| First published | 2018-05-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.0.0 |
| Dependencies | 1 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | linusu |

## Links

- npm: https://www.npmjs.com/package/async-lines
- Repository: https://github.com/LinusU/async-lines
- Homepage: https://github.com/LinusU/async-lines#readme
- Issues: https://github.com/LinusU/async-lines/issues
- npm.io page: https://npm.io/package/async-lines

## Dependencies (1)

- [async-chunks](https://npm.io/package/async-chunks.md) ^1.1.0

## Recent versions

- 1.1.0 (latest) — 2018-05-29
- 1.0.0 — 2018-05-29

## README

# Async Lines

Get an async iterator over lines in a stream.

## Installation

```sh
npm install --save async-lines
```

## Usage

```js
const fs = require('fs')
const asyncLines = require('async-lines')

// Print current file to stdout
const stream = fs.createReadStream(__filename)

for await (const line of asyncLines(stream)) {
  console.log(line)
}
```

## API

### `asyncLines(stream: Readable) => AsyncIterableIterator<string>`

Returns a new async iterator that iterates over all the lines in the stream.

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