Package Exports
- base-62.js
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 (base-62.js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
base-62.js
#Getting started
###Install it
$ npm install base-62.js###Require it
var base62 = require('base-62.js');###Use it to convert a number to a base 62 string
base62.encode('144928238032487217698238462873470924850921348902347582734698872031234');
//=> TODO FIND ACTUAL VALUE###Use it to come back
base62.decode(TODO FIND ACTUAL VALUE);
//=> "144928238032487217698238462873470924850921348902347582734698872031234"###Create a portable token from a MongoDB Object id (or any HEX string)
base62.encodeHex('556c9e573337620003000000');
//=> VALUE
base62.decodeHex(VALUE)
//=> "556c9e573337620003000000"###Create a random token (API Access or a random password)
base62.random()
//=> ACTUAL SAMPLE VALUE