npm.io
1.0.0 • Published 10 years ago

random-identity

Licence
MIT
Version
1.0.0
Deps
3
Vulns
0
Weekly
0
Stars
1

random-identity

Generate a random ID.

MIT License

build:? coverage:?

Install

$ npm install --save random-identity 

Usage

For more use-cases see the tests

var randomId = require('random-identity');

// randomId(length);
// `length` is between `8` and `32`

randomUuid();     
// => 92646114
randomUuid(16); 
// => 6015502566606407
randomUuid(64); 
// => 20852201805861854020048505434556

Contributing

Pull requests and stars are highly welcome.

For bugs and feature requests, please create an issue.

Keywords