# splitter

> Stream splitter using new streams

Latest version **0.1.2** (published 2013-09-30) · MIT license · 0 weekly downloads

## Install

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

## 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.2 |
| Published | 2013-09-30 |
| First published | 2013-03-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Eirik Albrigtsen |
| Maintainers | clux |
| Keywords | transform, split |

## Links

- npm: https://www.npmjs.com/package/splitter
- Repository: https://github.com/clux/splitter
- Issues: http://github.com/clux/splitter/issues
- npm.io page: https://npm.io/package/splitter

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.2 (latest) — 2013-09-30
- 0.1.1 — 2013-03-12
- 0.1.0 — 2013-03-07
- 0.0.1 — 2013-03-05

## README

# Splitter [![Build Status](https://secure.travis-ci.org/clux/splitter.png)](http://travis-ci.org/clux/splitter) [![Dependency Status](https://david-dm.org/clux/splitter.png)](https://david-dm.org/clux/splitter)

Splitter is a more or less direct port of the old streams module `split` using streams2, and is thus dependency free (apart from node ~0.10 and its core libs).

## Usage
Pipe things through it. It's a `Transform` stream.

```js
var splitter = require('splitter');
process.stdin.pipe(splitter()).process.stdout();
```

This will split by the default '\n' character and send data by line to stdout.

First argument to splitter is the thing to split by, which can either be a string or a regex.

## Running tests
Install development dependencies

```bash
$ npm install
```

Run the tests

```bash
$ npm test
```

## License
MIT-Licensed. See LICENSE file for details.

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