[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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
3.0.02latest

Version History

VersionDownloads (Last 7 Days)Published
3.0.02
2.0.026,688
1.0.33,409
1.0.2547
1.0.113,974
1.0.01
0.0.34,340
0.0.21,849
0.0.13,777
0.0.01

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