Upload via GUI (7543 Dateien)

This commit is contained in:
2026-10-22 07:02:04 +00:00
parent 54baf9b874
commit 42fb8dfe9b
50 changed files with 1948 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
import { toUint8Array } from "../bytes/index.js";
export function encode(text) {
return new TextEncoder().encode(text);
}
export function decode(data) {
return new TextDecoder("utf-8", { fatal: false }).decode(toUint8Array(data));
}
export const utf8 = { encode, decode };