Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
method Writable.prototype.setDefaultEncoding
import { Writable } from "https://deno.land/std@0.129.0/node/stream.ts";

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

Parameters

encoding: BufferEncoding

The new default encoding