(string, { urlSafe = false } = {})
| 177 | } |
| 178 | |
| 179 | export function stringToBase64(string, { urlSafe = false } = {}) { |
| 180 | assertString(string); |
| 181 | return uint8ArrayToBase64(stringToUint8Array(string), { urlSafe }); |
| 182 | } |
| 183 | |
| 184 | // export function base64ToString(base64String) { |
| 185 | // assertString(base64String); |
nothing calls this directly
no test coverage detected