Skip to content

Node module that translates between numeric and alphanumeric ids.

Notifications You must be signed in to change notification settings

tiagomnh/identical

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Identical

Identical is a simple node module that translates between numeric ids and alphanumeric ids using a user definable alphabet (a string representing the conversion table).

Why? Because:

  • Shorter URLs == Cooler URLs;
  • Your row-ids are shy;
  • Base36 is too mainstream for you.

Usage

var Identical = require('identical');

var i = new Identical('0123456789abcdefghijklmnoprstuvxwyz');

console.log(i.stringify(123456789)); // prints '2c9g1u'
console.log(i.numerify('2c9g1u')); // prints '123456789'

License

MIT.

About

Node module that translates between numeric and alphanumeric ids.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published