it
    Preparing search index...

    Module it-byte-stream

    This module makes it easy to send and receive bytes over streams.

    import { byteStream } from 'it-byte-stream'

    const stream = byteStream(duplex)

    // read the next chunk
    const bytes = await stream.read()

    // read the next five bytes
    const fiveBytes = await stream.read(5)

    // write bytes into the stream
    await stream.write(Uint8Array.from([0, 1, 2, 3, 4]))

    Interfaces

    ByteStream
    ByteStreamOpts
    ReadOptions

    Functions

    byteStream