Optional
opts: WritableOptionsReadonly
closedReadonly
erroredThe path to the file the stream is writing to as specified in the first
argument to createWriteStream. If path
is passed as a string, thenwriteStream.path
will be a string. If path
is passed as a Buffer
, thenwriteStream.path
will be a
Buffer
.
This property is true
if the underlying file has not been opened yet,
i.e. before the 'ready'
event is emitted.
Readonly
readableReadonly
readableReadonly
readableReadonly
writableReadonly
writableReadonly
writableReadonly
writableReadonly
writableReadonly
writableReadonly
writableOptional
_writevEvent emitter The defined events on documents including:
Event emitter The defined events on documents including:
Event emitter The defined events on documents including:
Event emitter The defined events on documents including:
Event emitter The defined events on documents including:
Event emitter The defined events on documents including:
Event emitter The defined events on documents including:
Rest
...args: any[]Closes writeStream
. Optionally accepts a
callback that will be executed once the writeStream
is closed.
Rest
...args: any[]Optional
cb: (() => void)Optional
cb: (() => void)Optional
encoding: stringOptional
cb: (() => void)Optional
options: SignalOptionOptional
options: ArrayOptionsRest
...args: any[]Rest
...args: any[]Rest
...args: any[]Rest
...args: any[]Rest
...args: any[]Optional
cb: ((error: undefined | null | Error) => void)Optional
encoding: stringOptional
cb: ((error: undefined | null | Error) => void)
The number of bytes written so far. Does not include data that is still queued for writing.