TextDecoder
interface TextDecoder {
readonly encoding
: string;
readonly fatal
: boolean;
readonly ignoreBOM
: boolean;
}
var TextDecoder
: {
prototype: TextDecoder;
new (label?: string, options?: TextDecoderOptions): TextDecoder;
};
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
Returns the result of running encoding's decoder.
© 2018–2022 the Deno authors
https://doc.deno.land/deno/stable/~/TextDecoder