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

Function dataToBase64

docs/bitty.js:467–469  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

465
466
467function dataToBase64(data) {
468 return btoa(String.fromCharCode.apply(null, new Uint8Array(data)));
469}
470
471function dataToBase64TD(data) {
472 return btoa(new TextDecoder('utf8').decode(data));

Callers 2

DataURLClass · 0.85
testCompressionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected