(input: string)
| 39 | } |
| 40 | |
| 41 | function stringToBase64(input: string): string { |
| 42 | const stringBytes = new TextEncoder().encode(input); |
| 43 | return base64.fromByteArray(stringBytes); |
| 44 | } |
| 45 | |
| 46 | function arrayToBase64(input: Uint8Array): string { |
| 47 | return base64.fromByteArray(input); |
no outgoing calls
no test coverage detected