tinyid
v0.1.4
Published
Generate unique random ids from integer keys.
Downloads
170
Maintainers
Readme
tinyid
Generate unique random ids from integer keys.
Start generating ids straight away:
var tinyid = require('tinyid');
tinyid.encode(5);
tinyid.decode('5TXE2');
Or customize:
var tinyid = require('tinyid');
var generator = tinyid({
wheel: 'abcdef1234',
padding: 5
});
generator.encode(463);