2025-03-11 07:26:49 -07:00

5 lines
167 B
TypeScript

import { TextDecoder } from "util";
export async function arrbufToStr(arrayBuffer : ArrayBuffer) {
return new TextDecoder().decode(new Uint8Array(arrayBuffer));
}