npm.io
1.0.0 • Published 8 years ago

idable

Licence
MIT
Version
1.0.0
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
1

A human readable ID for NodeJS.

Installation

npm i idable

Usage

A human readable random number ID:

const idable = require('idable');

console.log(idable(8, true));
// => 98703713

A human readable random letter ID:

const idable = require('idable');

console.log(idable(8, false));
// => locolagi

A human readable random letter and number ID:

const idable = require('idable');

console.log(idable(8));
// => od64udim

Keywords