Trilium Backend API
    Preparing search index...
    • Parses a stream of buffers into a document.

      The stream is a Writable stream that accepts buffers. When the stream is finished, the callback is called with the loaded document.

      Parameters

      • options: DecodeStreamOptions

        The options to pass to Cheerio.

      • cb: (err: Error, $: CheerioAPI) => void

        The callback to call when the stream is finished.

      Returns Writable

      The writable stream.