Skip to main content

setDefaultEncoding

method WritableBase.prototype.setDefaultEncoding
Jump to headingWritableBase.prototype.setDefaultEncoding(encoding: BufferEncoding): this

The writable.setDefaultEncoding() method sets the default encoding for a Writable stream.

Parameters Jump to heading

Jump to headingencoding: BufferEncoding

The new default encoding

Return Type Jump to heading

this
Back to top