Wondering what’s next for npm?Check out our public roadmap! »

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

    2.8.22-alpha • Public • Published

    Nerdbank Streams

    Enhanced streams for communication in-proc or across the Internet.

    Features

    1. FullDuplexStream creates a pair of bidirectional streams for in-proc two-way communication; it also creates a single bidirectional stream from two unidirectional streams.
    2. MultiplexingStream allows you to split any bidirectional .NET Stream into many sub-streams (called channels). This allows two parties to establish just one transport stream (e.g. named pipe or web socket) and use it for many independent protocols. For example, one might set up JSON-RPC on one channel and use other channels for efficient binary transfers.
    3. Substreams, accessible via writeSubstream and readSubstream exported functions allow you to serialize data of an unknown length as part of a larger stream, and later deserialize it such in reading the substream, you cannot read more bytes than were written to it.

    See our project README for more information.

    Install

    npm i nerdbank-streams

    DownloadsWeekly Downloads

    395

    Version

    2.8.22-alpha

    License

    MIT

    Unpacked Size

    201 kB

    Total Files

    66

    Last publish

    Collaborators

    • avatar