Uint8Array toBase64 and toHex: Stop Round-Tripping Bytes Through btoa
Every codebase that touches binary data has the same little helper buried in a utils folder. It takes a Uint8Array, spreads it into String.fromCharCode, hands the result to btoa, and hopes for the bes
grimicorn.hashnode.dev5 min read