MCPcopy
hub / github.com/victorqribeiro/isocity / ToBase64

Function ToBase64

js/main.js:80–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78
79// From https://stackoverflow.com/a/36046727
80const ToBase64 = u8 => {
81 return btoa(String.fromCharCode.apply(null, u8))
82}
83
84const FromBase64 = str => {
85 return atob(str).split('').map(c => c.charCodeAt(0))

Callers 1

updateHashStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected