npm.io
0.0.2 • Published 12 years ago

gen-uid

Licence
MIT
Version
0.0.2
Deps
0
Vulns
0
Weekly
0
Stars
2

Fast and simple uid generator.

Installation

$ npm install gen-uid

Example

var uid = require('gen-uid');

// guid v4
uid.v4() // -> 3bfb7707-ba36-48ef-ab30-ecca2bbb4b9a

// uniq token
uid.token()  // -> 26fed3d38f1a

// uniq short token
uid.token(true)  // -> 0c00e6b

Authors

License

MIT

Keywords