Rework of NewBase60
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
Makefile
README.md
index.js
package.json

README.md

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