# split-transform-stream

> A combination of through2 and split with a straightforward interface.

Latest version **1.0.0** (published 2015-11-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install split-transform-stream
pnpm add split-transform-stream
yarn add split-transform-stream
bun add split-transform-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.0.0 |
| Published | 2015-11-30 |
| First published | 2014-05-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Alexandru Vladutu |
| Maintainers | alessioalex |

## Links

- npm: https://www.npmjs.com/package/split-transform-stream
- Repository: https://github.com/alessioalex/split-transform-stream
- Homepage: https://github.com/alessioalex/split-transform-stream#readme
- Issues: https://github.com/alessioalex/split-transform-stream/issues
- npm.io page: https://npm.io/package/split-transform-stream

## Dependencies (3)

- [split](https://npm.io/package/split.md) ^1.0.0
- [through2](https://npm.io/package/through2.md) ^2.0.0
- [pump-chain](https://npm.io/package/pump-chain.md) ^1.0.0

## Recent versions

- 1.0.0 (latest) — 2015-11-30
- 0.1.1 — 2014-05-25
- 0.1.0 — 2014-05-23

## README

# split-transform-stream

A combination of [through2](https://www.npmjs.org/package/through2) and [split](https://github.com/dominictarr/event-stream#split-matcher) with a straightforward interface.

[![build status](https://secure.travis-ci.org/alessioalex/split-transform-stream.png)](http://travis-ci.org/alessioalex/split-transform-stream)

## Usage

```js
splitStream(inputStream, write, [end], [splitText])
```
returns a stream

## Example

```js
var readStream = require('fs').createReadStream(__filename, 'utf8');
var splitStream = require('./index');
var write = function(line, encoding, next) {
  this.push(line.split(' ').reverse().join(' '));

  next();
};

// emitting lines in reverse
splitStream(readStream, write).on('data', function(data) {
  console.log(data);
}).on('error', function(err) {
  if (err) { throw err; }
}).on('end', function() {
  console.log('done');
});
```

## License

[MIT](http://alessioalex.mit-license.org/)

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