1.0.2 • Published 1 year ago

duplex-through v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

duplex-through

Make two Duplex streamx streams that are passing through to each other.

Write to one, it push data to the other one.

npm install duplex-through

Useful for testing server/client flows

Usage

const duplexThrough = require('duplex-through')

const [a, b] = duplexThrough()

a.write('hello')
b.on('data', function (data) {
  // hello
})

License

MIT

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.0.0

1 year ago