# write-stream

> Base class for writable streams

Latest version **0.4.3** (published 2012-10-18) · 0 weekly downloads

## Install

```sh
npm install write-stream
pnpm add write-stream
yarn add write-stream
bun add write-stream
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.3 |
| Published | 2012-10-18 |
| First published | 2012-09-08 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Raynos |
| Maintainers | raynos |

## Links

- npm: https://www.npmjs.com/package/write-stream
- Repository: https://github.com/Raynos/write-stream
- Issues: https://github.com/Raynos/write-stream/issues
- npm.io page: https://npm.io/package/write-stream

## Dependencies (1)

- [readable-stream](https://npm.io/package/readable-stream.md) ~0.0.2

## Recent versions

- 0.4.3 (latest) — 2012-10-18
- 0.4.2 — 2012-10-15
- 0.4.1 — 2012-09-29
- 0.4.0 — 2012-09-27
- 0.1.1 — 2012-09-15
- 0.1.0 — 2012-09-09
- 0.0.1 — 2012-09-08

## README

# write-stream

Base class for writable streams

## Example array

```
var toArray = require("write-stream").toArray
    , array = []
    , stream = toArray(array, function end() {
        /* never called as process.stdin does not end */
    })

process.stdin.pipe(stream)

setInterval(function () {
    // peek at the buffered array of chunks from stdin every second
    console.log(array)
}, 1000)
```

## Example function

```
var WriteStream = require("write-stream")
    , stream = WriteStream(function write(chunk) {
        // chunks from stdin
    })

process.stdin.pipe(stream)
```

## Installation

`npm install write-stream`

## Contributors

 - Raynos

## MIT Licenced

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