fast-b64

0.1.0 • Public • Published

fast-b64

Quickly Convert between B64 and Binary Strings

install

npm install fast-b64

usage

converting from a string of bits to base64

const bitstobase64 = require('fast-b64/bits-to-base64');

const bits = '000011110000000000010111000000000001100000000000000010000011';

const base64 = bitstobase64(bits);
// base64 is 'DwAXABgACD=='

converting from a base64 string to a string of bits

const base64tobits = require('fast-b64/base64-to-bits');

const base64 = 'DwAXABgACD==';

const bits = base64tobits(base64);
// bits is '000011110000000000010111000000000001100000000000000010000011'

support

Post an issue at https://github.com/danieljdufour/fast-b64

Package Sidebar

Install

npm i fast-b64

Weekly Downloads

6

Version

0.1.0

License

CC0-1.0

Unpacked Size

11.8 kB

Total Files

8

Last publish

Collaborators

  • danieljdufour