Skip to content

CharsetDecodeStream

Defined in: packages/app-system/src/text/charset-decode-stream.ts:12

Decodes byte chunks into strings using the given charset.

Uses the platform TextDecoder where the charset is supported and iconv-lite for everything else. Split multi-byte sequences are carried across chunk boundaries.

  • TransformStream<Uint8Array, string>

new CharsetDecodeStream(charset?): CharsetDecodeStream

Defined in: packages/app-system/src/text/charset-decode-stream.ts:15

string = "utf-8"

CharsetDecodeStream

TransformStream<Uint8Array, string>.constructor

readonly readable: ReadableStream<string>

Defined in: node_modules/.store/@types-node-npm-26.6.6-a217a0974b/package/stream/web.d.ts:245

TransformStream.readable


readonly writable: WritableStream<Uint8Array<ArrayBufferLike>>

Defined in: node_modules/.store/@types-node-npm-26.6.6-a217a0974b/package/stream/web.d.ts:246

TransformStream.writable

get charset(): string

Defined in: packages/app-system/src/text/charset-decode-stream.ts:53

string