Skip to content

writable

Documentation / @wtf/platform-fs / writable

What an adapter’s createWritable() gives: FileWritableStream, a writable of the standard, over the WritableSink of the adapter, which writes bytes where it is told on a file of its own and puts that file in the file’s place as it closes. The writable reads each chunk, as the standard has it: bytes, a Blob or a snapshot, streamed, text, as UTF-8, and a write, seek or truncate as an object; it keeps where it writes, and grows the file with zeros to a write past its end.

Classes

Type Aliases