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

    1.0.0 • Public • Published

    lpstream-duplex

    lpstream-duplex provides a length-prefixed Duplex stream. Based on:

    Installation

    # npm
    npm i lpstream-duplex
    
    # yarn
    yarn add lpstream-duplex
    

    Typescript declarations are provided.

    License and Credits

    Licensed under MIT. All credits go to mafinstosh, they are responsible for all the important code here.

    Usage

    One good use for this module would be to encode messages that will be sent over TCP, which might fragment the data. You would use lpstream-duplex around an existing net.Socket.

    Some example code:

    const Lpsd = require("lpstream-duplex");
    
    const lpsd = new Lpsd(inputStream);
    
    // It's just a Duplex stream, you know how to use it.

    Keywords

    none

    Install

    npm i lpstream-duplex

    DownloadsWeekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    4.37 kB

    Total Files

    8

    Last publish

    Collaborators

    • justablob