(base64: string)
| 10 | |
| 11 | // From https://developer.mozilla.org/en-US/docs/Glossary/Base64#the_unicode_problem |
| 12 | export const base64Decode = (base64: string): string => { |
| 13 | const binString = atob(base64); |
| 14 | return Buffer.from(Uint8Array.from(binString, (m) => m.codePointAt(0)!).buffer).toString(); |
| 15 | } |
| 16 | |
| 17 | // TODO: Merge this with config loading logic which uses AJV |
| 18 | export const loadJsonFile = async <T>( |
no outgoing calls
no test coverage detected