1.0.0 • Published 8 years ago

random-identity v1.0.0

Weekly downloads
30
License
MIT
Repository
github
Last release
8 years ago

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

Related

Contributing

Pull requests and stars are highly welcome.

For bugs and feature requests, please create an issue.