Nobody Preheats Microwaves

    8b10b

    1.3.0 • Public • Published

    8b10b

    An ECMAScript implementation of the 8b10b line codec.

    Use it to convert bytes to 10-bit symbols and vise-versa. It only converts to and from data symbols; control symbols should be intercepted and handled by your application.

    Installation

    npm install --save 8b10b

    Usage

    const { Encoder, Decoder } = require('8b10b');
     
    const encoder = new Encoder(),
          decoder = new Decoder();      
     
    const encoded = encoder.encode(42);
     
    // => 345
     
    decoder.decode(encoded);
     
    // => 42

    Testing

    Tests use Mocha w/ Chai. To run, use npm run test.

    License

    See LICENSE.txt

    Thanks

    Most of the encoder was converted to JavaScript from fontesrp/encoding_8b10b.

    Keywords

    Install

    npm i 8b10b

    DownloadsWeekly Downloads

    3

    Version

    1.3.0

    License

    MIT

    Unpacked Size

    64.2 kB

    Total Files

    10

    Last publish

    Collaborators

    • ravenstine