it
    Preparing search index...

    Module it-ndjson-stream

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

    import { ndjsonStream } from 'it-ndjson-stream'

    const stream = ndjsonStream(duplex)

    // read the next message
    const obj = await stream.read()

    // write a message
    await stream.write({ hello: 'world' })

    // write several messages
    await stream.writeV([
    { hello: 'world' },
    { how: 'are you' }
    ])

    Interfaces

    NDJSONStream
    NDJSONStreamOpts

    Functions

    ndjsonStream