Download src/shared/encoding.ts from xjackkx/s2: direct link, hf CLI and curl.
- Browser
- Download file 192 Bytes
-
https://huggingface.co/spaces/xjackkx/s2/resolve/main/src/shared/encoding.ts
- Command line
-
hf download hf://spaces/xjackkx/s2/src/shared/encoding.ts
-
curl -L -o encoding.ts https://huggingface.co/spaces/xjackkx/s2/resolve/main/src/shared/encoding.ts
192 Bytes
| export const TEXT_ENCODER = new TextEncoder(); | |
| export const TEXT_DECODER = new TextDecoder(); | |
| export const UTF8_FATAL_DECODER = new TextDecoder("utf-8", { | |
| fatal: true, | |
| ignoreBOM: false, | |
| }); | |