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.
A
TransformStreamthat 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\rand activates normalisation only when needed — zero overhead for pure-LF files.Entries shorter than 40 characters are discarded.
Example