# obj-multiplex

> simple stream multiplexing for `objectMode`

Latest version **1.0.0** (published 2017-09-08) · ISC license · 0 weekly downloads

## Install

```sh
npm install obj-multiplex
pnpm add obj-multiplex
yarn add obj-multiplex
bun add obj-multiplex
```

## 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 | 2017-09-08 |
| First published | 2017-09-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | kumavis |

## Links

- npm: https://www.npmjs.com/package/obj-multiplex
- npm.io page: https://npm.io/package/obj-multiplex

## Dependencies (3)

- [once](https://npm.io/package/once.md) ^1.4.0
- [end-of-stream](https://npm.io/package/end-of-stream.md) ^1.4.0
- [readable-stream](https://npm.io/package/readable-stream.md) ^2.3.3

## Recent versions

- 1.0.0 (latest) — 2017-09-08

## README

# obj-multiplex

simple stream multiplexing for `objectMode`

### usage

```js
// create multiplexer
const mux = new ObjMultiplex()

// setup substreams
const streamA = mux.createStream('hello')
const streamB = mux.createStream('world')

// pipe over transport (and back)
mux.pipe(transport).pipe(mux)

// send values over the substreams
streamA.write({ thisIsAn: 'object' })
streamA.write(123)

// or pipe together normally
streamB.pipe(evilAiBrain).pipe(streamB)
```

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