mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-24 00:36:14 -04:00
7 lines
217 B
TypeScript
7 lines
217 B
TypeScript
const base64ToString = (str: string) => Buffer.from(str, 'base64').toString('utf-8')
|
|
const stringToBase64 = (str: string) => Buffer.from(str, 'utf-8').toString('base64')
|
|
|
|
export {
|
|
stringToBase64,
|
|
base64ToString
|
|
}
|