it
    Preparing search index...

    Module it-cbor-stream

    This module makes it easy to send and receive length-prefixed CBOR encoded messages over streams.

    import { cborStream } from 'it-cbor-stream'
    import { MessageType } from './src/my-message-type.js'

    const stream = cborStream(duplex)

    // write a message to the stream
    stream.write({
    foo: 'bar'
    })

    // read a message from the stream
    const res = await stream.read()

    Interfaces

    CBORStream

    Functions

    cborStream