blob: beb6f1deb1ab818db70b61b1999b169ac97f01cd (
plain)
1
2
3
4
5
6
7
8
|
/**
* Decode a base64-encoded string to a binary string
*
* @param input Base64-encoded string
*/
export default function asciiToBinary(input: string): string {
return Buffer.from(input, 'base64').toString('binary');
}
|