← Back to index
interface TextDecoder

Properties

🔗
encoding: string

Returns encoding's name, lowercased.

🔗
fatal: boolean

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

🔗
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.