# duplexer

> Creates a duplex stream

Latest version **0.1.2** (published 2020-08-12) · MIT license · 0 weekly downloads

## Install

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

## 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 | 2020-08-12 |
| First published | 2012-08-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 95 |
| Author | Raynos |
| Maintainers | raynos |

## Links

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

## Recent versions

- 0.1.2 (latest) — 2020-08-12
- 0.1.1 — 2013-04-26
- 0.1.0 — 2013-04-01
- 0.0.4 — 2013-03-27
- 0.0.3 — 2013-01-31
- 0.0.2 — 2012-08-14
- 0.0.1 — 2012-08-10

## README

# duplexer

[![build status][1]][2] [![dependency status][3]][4]

[![browser support][5]][6]

Creates a duplex stream

Taken from [event-stream][7]

## duplex (writeStream, readStream)

Takes a writable stream and a readable stream and makes them appear as a readable writable stream.

It is assumed that the two streams are connected to each other in some way.

## Example

```js
var cp = require('child_process')
  , duplex = require('duplexer')
  , grep = cp.exec('grep Stream')

duplex(grep.stdin, grep.stdout)
```

## Installation

`npm install duplexer`

## Tests

`npm test`

## Contributors

 - Dominictarr
 - Raynos
 - samccone

## MIT Licenced

  [1]: https://secure.travis-ci.org/Raynos/duplexer.png
  [2]: https://travis-ci.org/Raynos/duplexer
  [3]: https://david-dm.org/Raynos/duplexer.png
  [4]: https://david-dm.org/Raynos/duplexer
  [5]: https://ci.testling.com/Raynos/duplexer.png
  [6]: https://ci.testling.com/Raynos/duplexer
  [7]: https://github.com/dominictarr/event-stream#duplex-writestream-readstream

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