Sha256: 057ef3ae4f4b4c9d3dcd257d3b2f38632de3c3a2ff068e5be14cb56a61d6daba

Contents?: true

Size: 1.12 KB

Versions: 23

Compression:

Stored size: 1.12 KB

Contents

base64-js
=========

`base64-js` does basic base64 encoding/decoding in pure JS.

[![build status](https://secure.travis-ci.org/beatgammit/base64-js.png)](http://travis-ci.org/beatgammit/base64-js)

Many browsers already have base64 encoding/decoding functionality, but it is for text data, not all-purpose binary data.

Sometimes encoding/decoding binary data in the browser is useful, and that is what this module does.

## install

With [npm](https://npmjs.org) do:

`npm install base64-js` and `var base64js = require('base64-js')`

For use in web browsers do:

`<script src="base64js.min.js"></script>`

[Get supported base64-js with the Tidelift Subscription](https://tidelift.com/subscription/pkg/npm-base64-js?utm_source=npm-base64-js&utm_medium=referral&utm_campaign=readme)

## methods

`base64js` has three exposed functions, `byteLength`, `toByteArray` and `fromByteArray`, which both take a single argument.

* `byteLength` - Takes a base64 string and returns length of byte array
* `toByteArray` - Takes a base64 string and returns a byte array
* `fromByteArray` - Takes a byte array and returns a base64 string

## license

MIT

Version data entries

23 entries across 22 versions & 7 rubygems

Version Path
rapid_stack-0.1.1 templates/FrontEnd/node_modules/base64-js/README.md
rapid_stack-0.1.0 templates/FrontEnd/node_modules/base64-js/README.md
sequenceserver-3.1.3 public/vendor/npm/base64-js@1.5.1/README.md
sequenceserver-3.1.2 public/vendor/npm/base64-js@1.5.1/README.md
sequenceserver-3.1.1 public/vendor/npm/base64-js@1.5.1/README.md
sequenceserver-3.1.0 public/vendor/npm/base64-js@1.5.1/README.md
sequenceserver-3.0.1 public/vendor/npm/base64-js@1.5.1/README.md
sequenceserver-3.0 public/vendor/npm/base64-js@1.5.1/README.md
sequenceserver-2.2.0 public/vendor/npm/base64-js@1.5.1/README.md
sequenceserver-2.1.0 public/vendor/npm/base64-js@1.5.1/README.md
waves_lib-0.1.0 js/node_modules/base64-js/README.md
reed_sdk-1.0.1 node_modules/base64-js/README.md
reed_sdk-1.0.0 node_modules/base64-js/README.md
isomorfeus-puppetmaster-0.5.5 node_modules/base64-js/README.md
isomorfeus-puppetmaster-0.5.4 node_modules/base64-js/README.md
isomorfeus-puppetmaster-0.5.3 node_modules/base64-js/README.md
isomorfeus-puppetmaster-0.5.2 node_modules/base64-js/README.md
isomorfeus-puppetmaster-0.5.1 node_modules/base64-js/README.md
isomorfeus-puppetmaster-0.5.0 node_modules/base64-js/README.md
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/base64-js/README.md