MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / bytesFromBase64

Function bytesFromBase64

out/cli.cjs:33030–33032  ·  view source on GitHub ↗
(encoded)

Source from the content-addressed store, hash-verified

33028 return btoa(String.fromCodePoint(...u8arr));
33029 }
33030 function bytesFromBase64(encoded) {
33031 return Uint8Array.from(atob(encoded), (c4) => c4.charCodeAt(0));
33032 }
33033 function stringToBytes(str2) {
33034 return new TextEncoder().encode(str2);
33035 }

Callers 1

stringFromBase64Function · 0.85

Calls 1

fromMethod · 0.45

Tested by

no test coverage detected