[go: up one dir, main page]

plexer
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

plexer

Create a duplex stream from a readable and a writable stream.

GitHub license

Stats

NPM NPM

Contributing

Feel free to pull your code if you agree with publishing it under the MIT license.

API

Classes

Duplexer

Create a duplex stream from a readable and a writable stream.cd

Functions

createObjectsDuplexer(optionsOrWritableStream, writableStreamOrReadableStream, maybeReadableStream)

A shortcut for new Duplexer({objectMode: true}, writable, readable).

createDuplexer(optionsOrWritableStream, writableStreamOrReadableStream, maybeReadableStream)

A functional version of Duplexer.

Duplexer

Create a duplex stream from a readable and a writable stream.cd

Kind: global class

new Duplexer(optionsOrWritableStream, writableStreamOrReadableStream, a)

Creates the Duplexer instance

Returns: Duplexer

Param Type Description
optionsOrWritableStream options or the writable stream
writableStreamOrReadableStream writable or readable stream
a maybeReadableStream readable stream

createObjectsDuplexer(optionsOrWritableStream, writableStreamOrReadableStream, maybeReadableStream) ⇒

A shortcut for new Duplexer({objectMode: true}, writable, readable).

Kind: global function
Returns: Duplexer

Param
optionsOrWritableStream
writableStreamOrReadableStream
maybeReadableStream

createDuplexer(optionsOrWritableStream, writableStreamOrReadableStream, maybeReadableStream) ⇒

A functional version of Duplexer.

Kind: global function
Returns: Duplexer

Param
optionsOrWritableStream
writableStreamOrReadableStream
maybeReadableStream

Authors

License

MIT

Package Sidebar

Install

npm i plexer

Weekly Downloads

54,588

Version

3.0.0

License

MIT

Unpacked Size

87.7 kB

Total Files

12

Last publish

Collaborators

  • nfroidure