# line-numbers-stream

> Add line numbers to a stream of text

Latest version **1.1.0** (published 2015-12-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install line-numbers-stream
pnpm add line-numbers-stream
yarn add line-numbers-stream
bun add line-numbers-stream
```

## 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 | 2015-12-26 |
| First published | 2015-12-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Even Brenna |
| Maintainers | evenbrenna |
| Keywords | stream, transform, linenumber, line, number, numbers, string |

## Links

- npm: https://www.npmjs.com/package/line-numbers-stream
- Repository: https://github.com/evenbrenna/line-numbers-stream
- Homepage: https://github.com/evenbrenna/line-numbers-stream#readme
- Issues: https://github.com/evenbrenna/line-numbers-stream/issues
- npm.io page: https://npm.io/package/line-numbers-stream

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2015-12-26
- 1.0.0 — 2015-12-26

## README

# line-numbers-stream
> Add line numbers to a stream of text

## Installation

```sh
$ npm install --save line-numbers-stream
```

## Usage

```js
const fs = require('fs');
const source = fs.createReadStream('exampleText.txt');
const addLineNumbers = require('line-numbers-stream');

source.pipe(addLineNumbers).pipe(process.stdout);

// 1: First line
// 2: and the second line.
// 3: ... and so on.

```

## License

MIT © [Even Brenna]()


[npm-image]: https://badge.fury.io/js/line-numbers-stream.svg
[npm-url]: https://npmjs.org/package/line-numbers-stream
[travis-image]: https://travis-ci.org/evenbrenna/line-numbers-stream.svg?branch=master
[travis-url]: https://travis-ci.org/evenbrenna/line-numbers-stream
[daviddm-image]: https://david-dm.org/evenbrenna/line-numbers-stream.svg?theme=shields.io
[daviddm-url]: https://david-dm.org/evenbrenna/line-numbers-stream

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