# @gluecode-it/readable-to-writeables-stream-processor

> [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](https://github.com/semantic-release/semantic-release) [![NPM Version](https://img.shields.io/npm/v/@gluecode-it/readable-to-w

Latest version **1.0.12** (published 2020-12-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install @gluecode-it/readable-to-writeables-stream-processor
pnpm add @gluecode-it/readable-to-writeables-stream-processor
yarn add @gluecode-it/readable-to-writeables-stream-processor
bun add @gluecode-it/readable-to-writeables-stream-processor
```

## 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.12 |
| Published | 2020-12-22 |
| First published | 2020-10-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | oliverlorenz |

## Links

- npm: https://www.npmjs.com/package/@gluecode-it/readable-to-writeables-stream-processor
- npm.io page: https://npm.io/package/@gluecode-it/readable-to-writeables-stream-processor

## Recent versions

- 1.0.12 (latest) — 2020-12-22
- 1.0.11 — 2020-12-11
- 1.0.10 — 2020-10-22
- 1.0.9 — 2020-10-20
- 1.0.8 — 2020-10-20
- 1.0.0 — 2020-10-19

## README

[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](https://github.com/semantic-release/semantic-release) [![NPM Version](https://img.shields.io/npm/v/@gluecode-it/readable-to-writeables-stream-processor.svg?style=flat-square)](https://www.npmjs.com/package/@gluecode-it/readable-to-writeables-stream-processor)

An abstract class to transform a readable stream to multiple writeable streams via pipe

## Contents

- [Installation](#installation)
- [Example usage](#example-usage)

## Installation

```bash
$ npm install @gluecode-it/readable-to-writeables-stream-processor
```

## Example usage

```js
import { ReadableToWriteablesSteamProcessor } from '@gluecode-it/readable-to-writeables-stream-processor';
import { Parse, Entry } from 'unzipper';
import { Writable } from 'stream';

export class ReadableStreamUnzipProcessor extends ReadableToWriteablesSteamProcessor {
  parseStream(getWriteableStreamCallback: (filePath: string) => Writable) {
    const stream = Parse();
    stream.on('entry', (entry: Entry) => {
      getWriteableStreamCallback(entry.props.path);
    });
    return stream;
  }
}
```

## See also

- [@gluecode-it/readable-stream-unzip-processor](https://github.com/gluecode-it/readable-stream-unzip-processor)

---
_Source: https://npm.io/package/@gluecode-it/readable-to-writeables-stream-processor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
