mirror of
https://github.com/CorentinTh/it-tools.git
synced 2026-06-04 21:25:54 -04:00
feat(tools): added base64 string converter
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user