MCPcopy Create free account
hub / github.com/arfct/itty-bitty / base64ToByteArray

Function base64ToByteArray

docs/bitty.js:394–396  ·  view source on GitHub ↗
(base64)

Source from the content-addressed store, hash-verified

392var BROT_MARKER = 'br';
393
394function base64ToByteArray(base64) {
395 return Uint8Array.from(atob(base64), c => c.charCodeAt(0));
396}
397
398function loadScript(src, type, callback) {
399 let script = document.getElementById(src);

Callers 1

DataURLClass · 0.70

Calls 1

fromMethod · 0.80

Tested by

no test coverage detected