deno.com

method Stream.Writable.prototype.setDefaultEncoding

#Writable.prototype.setDefaultEncoding(encoding: BufferEncoding): this

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

Parameters #

#encoding: BufferEncoding

The new default encoding

Return Type #

this