Eric Foster 35b96bc934 initial commit | пре 6 година | |
---|---|---|
.. | ||
scripts | пре 6 година | |
test | пре 6 година | |
.npmignore | пре 6 година | |
.travis.yml | пре 6 година | |
LICENSE | пре 6 година | |
Makefile | пре 6 година | |
README.md | пре 6 година | |
base64.js | пре 6 година | |
base64.min.js | пре 6 година | |
bower.json | пре 6 година | |
package.json | пре 6 година |
≈ 500 byte* polyfill for browsers which don't provide window.btoa
and
window.atob
.
Although the script does no harm in browsers which do provide these functions, a conditional script loader such as yepnope can prevent unnecessary HTTP requests.
yepnope({
test: window.btoa && window.atob,
nope: 'base64.js',
callback: function () {
// `btoa` and `atob` are now safe to use
}
})
Base64.js stems from a gist by yahiko.
make setup
make test
* Minified and gzipped. Run make bytes
to verify.