sdf-parser
    Preparing search index...

    Interface IteratorOptions

    Options for the iterator async generator.

    interface IteratorOptions {
        dynamicTyping?: boolean;
        eol?: string;
        filter?: (molecule: IteratorMolecule) => boolean;
        mixedEOL?: boolean;
    }
    Index

    Properties

    dynamicTyping?: boolean

    When true, numeric string values are automatically converted to numbers.

    true
    
    eol?: string

    End-of-line character used to split field entries.

    '\n'
    
    filter?: (molecule: IteratorMolecule) => boolean

    A predicate function to filter molecules. Only molecules for which this function returns true are yielded.

    mixedEOL?: boolean

    Controls EOL normalisation before splitting on $$$$.

    • undefined (default): inspect the first 10 000 characters; normalise only if \r is detected.
    • true: always normalise CR and CRLF to LF.
    • false: never normalise; use when the file is known to be pure LF.