Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/okikio/bundlejs-api.
Something went wrong. Try again.
242 B · 5 lines
TypeScript
at commit 2aa4dc18
12345// export const { encode } = new TextEncoder();// export const { decode } = new TextDecoder();
export const encode = (str: string) => new TextEncoder().encode(str);export const decode = (buf: BufferSource) => new TextDecoder().decode(buf);