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

x/levo/templates/new-project/lib/lib.deno_runtime.d.ts>TextDecoder

Server side rendering with The Elm Architecture in Deno
Latest
class TextDecoder
import { TextDecoder } from "https://deno.land/x/levo@v0.0.27/templates/new-project/lib/lib.deno_runtime.d.ts";

Constructors

new
TextDecoder(label?: string, options?: { fatal?: boolean; ignoreBOM?: boolean; })

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.

readonly
[Symbol.toStringTag]: string

Methods

decode(input?: BufferSource, options?: { stream?: false; }): string

Returns the result of running encoding's decoder.