Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/cli/js/lib.deno_runtime.d.ts>__textEncoding.TextDecoder

A modern runtime for JavaScript and TypeScript.
Go to Latest
class __textEncoding.TextDecoder
import { __textEncoding } from "https://deno.land/x/deno@v0.30.0/cli/js/lib.deno_runtime.d.ts";
const { TextDecoder } = __textEncoding;

Constructors

new
TextDecoder(label?: string, options?: TextDecoderOptions)

Properties

private
_encoding
readonly
encoding: string

Returns encoding's name, lowercased.

readonly
fatal: boolean

Returns true if error mode is "fatal", and false otherwise.

readonly
ignoreBOM: boolean

Returns true if ignore BOM flag is set, and false otherwise.

readonly
[Symbol.toStringTag]: string

Methods

Returns the result of running encoding's decoder.