# @codemeistre/stream-add-lf

> A small transform stream that adds line feed after each line or only after JSON lines.

Latest version **2.1.1** (published 2022-03-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install @codemeistre/stream-add-lf
pnpm add @codemeistre/stream-add-lf
yarn add @codemeistre/stream-add-lf
bun add @codemeistre/stream-add-lf
```

Provides the command `stream-add-lf`.

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.1.1 |
| Published | 2022-03-28 |
| First published | 2020-03-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8.0.0 |
| Dependencies | 5 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Micael Levi Lima Cavalcante |
| Maintainers | codemeistre-bot, micalevisk |
| Keywords | transform, stream, NDJSON |

## Links

- npm: https://www.npmjs.com/package/@codemeistre/stream-add-lf
- Repository: https://github.com/codemeistre/shared
- Homepage: https://github.com/codemeistre/shared/tree/master/packages/stream-add-lf
- Issues: https://github.com/codemeistre/shared/issues
- npm.io page: https://npm.io/package/@codemeistre/stream-add-lf

## Dependencies (5)

- [pump](https://npm.io/package/pump.md) ^3.0.0
- [split2](https://npm.io/package/split2.md) ^4.1.0
- [minimist](https://npm.io/package/minimist.md) ^1.2.6
- [through2](https://npm.io/package/through2.md) ^4.0.2
- [fast-json-parse](https://npm.io/package/fast-json-parse.md) ^1.0.3

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 2.1.1 (latest) — 2022-03-28
- 2.1.0 — 2022-01-03
- 2.0.0 — 2020-08-14
- 1.0.1 — 2020-03-26
- 1.0.0 — 2020-03-26

## README

# stream-add-lf

[![npm](https://img.shields.io/npm/v/@codemeistre/stream-add-lf.svg)](https://www.npmjs.com/package/@codemeistre/stream-add-lf)
[![npm](https://img.shields.io/npm/dt/@codemeistre/stream-add-lf.svg)](https://www.npmjs.com/package/@codemeistre/stream-add-lf)

A small transform stream that adds line feed (`\n` or `\r\n`) after each line or only after JSON lines.

## Instalation

```bash
# using NPM
npm i -g @codemeistre/stream-add-lf

# or using Yarn
yarn global add @codemeistre/stream-add-lf
```

## Usage

```bash
node your-app.js | stream-add-lf #[OPTION]...
```

| Option            | Type      | Default | Description                                                   |
| ----------------- | --------- | ------- | ------------------------------------------------------------- |
| `--version`, `-v` | `boolean` | -       | Show this package's version and exit.                         |
| `--all, -A`       | `boolean` | `false` | Add **LF** (or **CRLF** if using with `-F`) after every line. |
| `--crlf, -F`      | `boolean` | `false` | Use **CRLF** (`\r\n`) line endings instead of LF (`\n`).      |

## License

MIT

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