# chunknlines

> Stream that splits the input in chunk made by n lines

Latest version **0.1.1** (published 2014-08-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install chunknlines
pnpm add chunknlines
yarn add chunknlines
bun add chunknlines
```

## 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.1 |
| Published | 2014-08-10 |
| First published | 2014-08-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | indiependente |
| Maintainers | indiependente |
| Keywords | stream, split, splitter, chunk, chunker, big, line, nlines, linesplitter, transform, through, combiner |

## Links

- npm: https://www.npmjs.com/package/chunknlines
- Repository: https://github.com/indiependente/chunknlines
- Issues: https://github.com/indiependente/chunknlines/issues
- npm.io page: https://npm.io/package/chunknlines

## Dependencies (3)

- [through](https://npm.io/package/through.md) ^2.3.4
- [binary-split](https://npm.io/package/binary-split.md) ^0.1.2
- [stream-combiner](https://npm.io/package/stream-combiner.md) ^0.2.1

## Alternatives

- [byte-size](https://npm.io/package/byte-size.md) — 2.1M weekly downloads
- [speed-limiter](https://npm.io/package/speed-limiter.md) — 16.0K weekly downloads
- [@powersync/node](https://npm.io/package/@powersync/node.md) — 10.9K weekly downloads
- [@ledgerhq/coin-cardano](https://npm.io/package/@ledgerhq/coin-cardano.md) — 1.0K weekly downloads
- [@jayesol/jayeson.lib.streamfinder](https://npm.io/package/@jayesol/jayeson.lib.streamfinder.md) — 1.0K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2014-08-10

## README

chunknlines
===========

Node.js n-lines chunker stream module
##What it does
This stream helps you create chunks from an input. It's very useful when dealing with big files.

This module takes text in input and sends in output chunk made by n-lines. Where n is the only argument that it needs, but it can be omitted. Simple.


##Usage
var chunknlines 	= 	require('chunknlines');

stream.pipe(chunknlines([NLINES]).pipe(anotherstream);

#####Argument:
- NLINES: the number of lines in a single chunk (default = 1)

##Example
The example code below, echoes what we write on standard input every 3 new lines.

```javascript
var chunknlines 	= 	require('chunknlines');

process.stdin.pipe(chunknlines(3)).pipe(process.stdout);
```

##License
####MIT

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