Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno/ext/web/lib.deno_web.d.ts>TextDecoder

A modern runtime for JavaScript and TypeScript.
Go to Latest
interface TextDecoder
import { type TextDecoder } from "https://deno.land/x/deno@v1.38.1/ext/web/lib.deno_web.d.ts";

Properties

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.

Methods

decode(input?: BufferSource, options?: TextDecodeOptions): string

Returns the result of running encoding's decoder.

variable TextDecoder
import { TextDecoder } from "https://deno.land/x/deno@v1.38.1/ext/web/lib.deno_web.d.ts";

type

{ readonly prototype: TextDecoder; new (label?: string, options?: TextDecoderOptions): TextDecoder; }