base64codec

Base64 encoding/decoding library for JavaScript.

base64codec.js

Base64 encoding/decoding library for JavaScript.

$ npm install base64codec
$ bower install base64codec
$ jam install base64codec
var base64codec = require('base64codec');
base64codec.encode('\0\0\0'); // -> 'AAAA' 
base64codec.decode('AAAA'); // -> '\0\0\0' 
require(['base64codec'], function(base64codec) {
    base64codec.encode('\0\0\0'); // -> 'AAAA' 
    base64codec.decode('AAAA'); // -> '\0\0\0' 
});
<script src="base64codec.js"></script>
<script>
    window.base64codec.encode('\0\0\0'); // -> 'AAAA'
    window.base64codec.decode('AAAA'); // -> '\0\0\0'
</script>