{ } qjs-modules

streams

Source: lib/streams.js (pure JS)

Higher-level helpers built on top of the WHATWG stream implementation — file-backed streams, line iteration, and text transform streams. Re-exports everything from stream.

Exports

ExportArgsKindDescription
(re-export)——export * from 'stream' — all stream classes.
FileSystemReadableStream(file, bufSize)1–2functionA ReadableStream reading from an open file.
FileSystemReadableFileStream(path, bufSize)1–2functionA ReadableStream reading from a path.
FileSystemWritableFileStream(path)1functionA WritableStream writing to a path.
StreamReadIterator(strm)1async generatorYields chunks read from a stream.
LineStreamIterator(strm)1async generatorYields lines read from a stream.
ByLineStream—constA transform that splits a byte stream into lines.
TextEncoderStream—classTransforms strings → bytes (extends TransformStream).
TextDecoderStream—classTransforms bytes → strings (extends TransformStream).