Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
method Writable.prototype.setDefaultEncoding
import { Writable } from "https://deno.land/std@0.164.0/node/_stream.d.ts";

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

Parameters

encoding: BufferEncoding

The new default encoding