An open API service indexing awesome lists of open source software.

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...

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