MCPcopy Create free account
hub / github.com/arctic-cli/interface / base64Encode

Function base64Encode

packages/util/src/encode.ts:1–3  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

1export function base64Encode(value: string) {
2 return btoa(value).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "")
3}
4
5export function base64Decode(value: string) {
6 return atob(value.replace(/-/g, "+").replace(/_/g, "/"))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected