mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-21 07:16:15 -04:00
8 lines
217 B
TypeScript
8 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
|
||
|
}
|