Skip to main content
method WritableBase.prototype.setDefaultEncoding
WritableBase.prototype.setDefaultEncoding(encoding: BufferEncoding): this
Deprecated

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

Parameters

encoding: BufferEncoding

The new default encoding

Return Type

this
Back to top