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

Function stringToBytes

out/cli.cjs:33033–33035  ·  view source on GitHub ↗
(str2)

Source from the content-addressed store, hash-verified

33031 return Uint8Array.from(atob(encoded), (c4) => c4.charCodeAt(0));
33032 }
33033 function stringToBytes(str2) {
33034 return new TextEncoder().encode(str2);
33035 }
33036 function stringFromBytes(u8arr) {
33037 return new TextDecoder().decode(u8arr);
33038 }

Callers 1

stringToBase64Function · 0.85

Calls 1

encodeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…