(b64: string)
| 28 | } |
| 29 | |
| 30 | function base64ToString(b64: string): string { |
| 31 | if (b64 == null) { |
| 32 | return null; |
| 33 | } |
| 34 | if (b64 == "") { |
| 35 | return ""; |
| 36 | } |
| 37 | const stringBytes = base64.toByteArray(b64); |
| 38 | return new TextDecoder().decode(stringBytes); |
| 39 | } |
| 40 | |
| 41 | function stringToBase64(input: string): string { |
| 42 | const stringBytes = new TextEncoder().encode(input); |
no outgoing calls
no test coverage detected