https://github.com/stringmanolo/base64-es6-module
You can use it in node, browser, quickjs...
https://github.com/stringmanolo/base64-es6-module
Last synced: 10 months ago
JSON representation
You can use it in node, browser, quickjs...
- Host: GitHub
- URL: https://github.com/stringmanolo/base64-es6-module
- Owner: StringManolo
- Created: 2020-12-05T16:09:34.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-03T21:37:32.000Z (over 4 years ago)
- Last Synced: 2025-02-07T17:45:02.819Z (12 months ago)
- Language: JavaScript
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
code: javascript
# b64.mjs
---
### ES6 module
---
##### Base64 module developed to provide base64 to Quickjs compatible with Quickjs, Node, Browsers.
---
Base64 implementation, compatible with Quickjs, Node, Browsers..
##### _function_ **base64**
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