code: javascript
Base64 implementation, compatible with Quickjs, Node, Browsers..
Encode/Decode base64
Argument: mode String "e" | "d" to encode or decode
Argument: data String Base64 string to decode or text to encode
Return: end String Base64 encoded string or Utf-8 decoded string