JSPM

base64-words

0.2.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 9239
  • Score
    100M100P100Q130427F
  • License ISC

Convert base64 strings into human-friendly words

Package Exports

  • base64-words

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (base64-words) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Build Status

base64-words

Convert base64 strings into human-friendly words.

Installation

npm install base64-words --save

Usage

Convert A Base64 String into Words

var Base64Words = require('base64-words');

var str64 = new Buffer("1234566778").toString('base64');

var words = Base64Words.fromBase64(str64);

console.log('base64', str64, 'words', words);

Convert The Words Back to Base64

var Base64Words = require('base64-words');

var words = 'ducky-apron-finer-tulip-genre-finite-groom-anteater';

var str64 = Base64Words.toBase64(words);

console.log('words', words, 'base64', str64);

Tests

npm test