@@ -525,6 +525,13 @@ Important: does not copy data, returns a view on the same underlying buffer
525525
526526### ` @exodus/bytes/encoding.js `
527527
528+ Implements the [ Encoding standard] ( https://encoding.spec.whatwg.org/ ) :
529+ [ TextDecoder] ( https://encoding.spec.whatwg.org/#interface-textdecoder ) ,
530+ [ TextEncoder] ( https://encoding.spec.whatwg.org/#interface-textencoder ) ,
531+ [ TextDecoderStream] ( https://encoding.spec.whatwg.org/#interface-textdecoderstream ) ,
532+ [ TextEncoderStream] ( https://encoding.spec.whatwg.org/#interface-textencoderstream ) ,
533+ some [ hooks] ( https://encoding.spec.whatwg.org/#specification-hooks ) .
534+
528535``` js
529536import { TextDecoder , TextEncoder } from ' @exodus/bytes/encoding.js'
530537import { TextDecoderStream , TextEncoderStream } from ' @exodus/bytes/encoding.js' // Requires Streams
@@ -533,13 +540,6 @@ import { TextDecoderStream, TextEncoderStream } from '@exodus/bytes/encoding.js'
533540import { getBOMEncoding , legacyHookDecode , labelToName , normalizeEncoding } from ' @exodus/bytes/encoding.js'
534541```
535542
536- Implements the [ Encoding standard] ( https://encoding.spec.whatwg.org/ ) :
537- [ TextDecoder] ( https://encoding.spec.whatwg.org/#interface-textdecoder ) ,
538- [ TextEncoder] ( https://encoding.spec.whatwg.org/#interface-textencoder ) ,
539- [ TextDecoderStream] ( https://encoding.spec.whatwg.org/#interface-textdecoderstream ) ,
540- [ TextEncoderStream] ( https://encoding.spec.whatwg.org/#interface-textencoderstream ) ,
541- some [ hooks] ( https://encoding.spec.whatwg.org/#specification-hooks ) .
542-
543543#### ` new TextDecoder(label = 'utf-8', { fatal = false, ignoreBOM = false }) `
544544
545545[ TextDecoder] ( https://encoding.spec.whatwg.org/#interface-textdecoder ) implementation/polyfill.
0 commit comments