@branscha/base64

Base64 codec following RFC 3548 or RFC 4648.


Keywords
base64
License
ISC
Install
npm install @branscha/base64@1.0.2

Documentation

Base 64 Codec Build Status

Goal

Standard 'base64' encoding for RFC 3548 or RFC 4648.

  • No line splitting (in accordance with this standard).
  • https://en.wikipedia.org/wiki/Base64.
  • A JavaScript string is interpreted as a string of bytes, each character corresponds to a single byte.

Example using CommonJS semantics.

var base64 = require('@branscha/base64');
var encoded = base64.encode("Hello World");
var decoded = base64.decode(encoded);

The package contains an UMD module.