Optional
encoding: stringOptional
options: { Optional
fatal?: booleanOptional
ignoreBOM?: booleanReadonly
encodingThe encoding supported by the TextDecoder
instance.
Readonly
fatalThe value will be true
if decoding errors result in a TypeError
being
thrown.
Readonly
ignoreBOMThe value will be true
if the decoding result will include the byte order
mark.
Decodes the input
and returns a string. If options.stream
is true
, any
incomplete byte sequences occurring at the end of the input
are buffered
internally and emitted after the next call to textDecoder.decode()
.
If textDecoder.fatal
is true
, decoding errors that occur will result in aTypeError
being thrown.
Optional
input: null | ArrayBuffer | ArrayBufferViewAn ArrayBuffer
, DataView
or TypedArray
instance containing the encoded data.
Optional
options: { Optional
stream?: booleanGenerated using TypeDoc
An implementation of the WHATWG Encoding Standard
TextDecoder
API.Since
v8.3.0