convert-radix64

v0.2.0
A common JS library that converts numbers to and from radix-64 notation

Convert-Radix64

A commonJS module to convert numbers to and from radix-64 notation

Installation

In Node.JS

npm install convert-radix64

Usage

The alphabet used here is -

0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz

Convert to Radix64

const r = requrire('convert-radix64')
r.to64(0); //0
r.to64(10); //A
r.to64(64); //_

Convert from Radix64

const r = requrire('convert-radix64')
r.from64("A"); //10
r.from64("0"); //0
r.from64("_"); //64
npm i convert-radix64

Metadata

  • GPL-2.0
  • Whatever
  • Arnav Gupta
  • released 11/25/2016

Downloads

Maintainers