Function createWritable
Parameters
- options: { compress?: boolean; filepath: string }
Options.
Optionalcompress?: booleanWhen
true, gzip compression is enabled; default:falsefilepath: string
Output file path.
Returns Writable
A writable stream with optional gzip compression.
- options: { compress?: boolean; filepath: string }
Creates a writable output stream to a file transparently handling optional gzip compression.