new-base-61

Based on NewBase60 by Tantek Çelik.

Try to solve an issue with NewBase60 where string with leading 0 will not be able to get back the same string back.

npm install new-base-61
 
var nb61 = require('new-base-61');
 
// Convert string to 61 base number 
var val = nb61.strtonum('Hello');
 
// Convert number value back to string 
console.log(nb61.numtostr(val));  `     
 

Released under CC BY-SA 3.0