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

https://github.com/knowledgecode/base64.js

functions like "atob" and "btoa"
https://github.com/knowledgecode/base64.js

Last synced: 9 months ago
JSON representation

functions like "atob" and "btoa"

Awesome Lists containing this project

README

          

# Base64.js
Base64.js provides some functions like "atob" and "btoa".

## Methods
### base64.encode
Creates a base64 encoded ASCII string from a string of binary data.
In most browsers, calling window.btoa on a Unicode string will cause a Character Out Of Range exception, so it has taken measures to avoid the exception.
[Please see here for more details.](https://developer.mozilla.org/en-US/docs/DOM/window.btoa#Unicode_Strings)

### base64.decode
Decodes a string of data which has been encoded using base64 encoding.

### base64.encodeSafe
Creates a web safe base64 encoded ASCII string from a string of binary data.

### base64.decodeSafe
Decodes a string of data which has been encoded using base64.encodeSafe().

## License
Base64.js is available under the terms of the MIT license.