base64
10/22/22Less than 1 minute
Provides basic Base64 conversion functions.
$base64.encode(str, encoding = 'utf-8')
str{string} String to encodeencoding{string} Optional character encoding
Encodes str with Base64 and returns the encoded string.
console.log($base64.encode("test")); // prints dGVzdA==$base64.decode(str, encoding = 'utf-8')
str{string} Base64 string to decodeencoding{string} Optional character encoding
Decodes Base64 string str and returns the decoded string.
console.log($base64.decode("dGVzdA==")); // prints test