MCPcopy
hub / github.com/BlueWallet/BlueWallet / stringToBase64

Function stringToBase64

blue_modules/uint8array-extras/index.js:179–182  ·  view source on GitHub ↗
(string, { urlSafe = false } = {})

Source from the content-addressed store, hash-verified

177}
178
179export function stringToBase64(string, { urlSafe = false } = {}) {
180 assertString(string);
181 return uint8ArrayToBase64(stringToUint8Array(string), { urlSafe });
182}
183
184// export function base64ToString(base64String) {
185// assertString(base64String);

Callers

nothing calls this directly

Calls 3

assertStringFunction · 0.85
uint8ArrayToBase64Function · 0.85
stringToUint8ArrayFunction · 0.85

Tested by

no test coverage detected