WritableBase.prototype.setDefaultEncoding - Node documentation
method WritableBase.prototype.setDefaultEncoding

Usage in Deno

import { WritableBase } from "node:stream";
WritableBase.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