Skip to main content
WritableBase.prototype.setDefaultEncoding - node__stream.d.ts - Node documentation
method WritableBase.prototype.setDefaultEncoding

Usage in Deno

```typescript import { WritableBase } from "node:node__stream.d.ts"; ```
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