new-base-61

npm install new-base-61
1 downloads in the last week
1 downloads in the last month

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.

Installation

npm install new-base-61

Example


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));  `

License

Released under CC BY-SA 3.0

npm loves you