sdf-parser
    Preparing search index...

    Class MolfileStream

    A TransformStream that splits an incoming SDF text stream on the $$$$ record delimiter and emits individual molfile strings.

    Handles CRLF, LF, and mixed line endings. By default (mixedEOL: undefined) the stream sniffs the first 10 000 characters to detect \r and activates normalisation only when needed — zero overhead for pure-LF files.

    Entries shorter than 40 characters are discarded.

    const stream = readStream.pipeThrough(new MolfileStream());
    for await (const molfile of stream) {
    console.log(molfile);
    }

    Hierarchy

    • TransformStream<string, string>
      • MolfileStream
    Index

    Constructors

    Properties

    Constructors

    Properties

    readable: ReadableStream<string>
    writable: WritableStream<string>