chartist-js/bower_components/base64
2014-11-27 01:26:53 +01:00
..
.bower.json Update to latest site dist 2014-11-27 01:26:53 +01:00
base64.js Latest site build with new live example page 2014-09-07 04:37:53 +02:00
base64.min.js Latest site build with new live example page 2014-09-07 04:37:53 +02:00
bower.json Latest site build with new live example page 2014-09-07 04:37:53 +02:00
LICENSE Latest site build with new live example page 2014-09-07 04:37:53 +02:00
package.json Latest site build with new live example page 2014-09-07 04:37:53 +02:00
README.md Latest site build with new live example page 2014-09-07 04:37:53 +02:00

Base64.js

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

Running the test suite

make setup
make test

* Minified and gzipped. Run make bytes to verify.