random-identity
v1.0.0
Published
Generate a random ID.
Downloads
15
Maintainers
Readme
random-identity
Generate a random ID.
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
- random-integral - Generate a random integer.
- random-natural - Generate a random natural number.
- random-decimal - Generate a random decimal.
- random-index - Generate a random array-like index.
- random-binary - Generate a random binary number.
- random-octal - Generate a random octal.
- random-hexadecimal - Generate a random hexadecimal number.
- random-unicode - Generate a random unicode.
- random-bool - Generate a random boolean (true/false).
- random-char - Generate a random char.
- random-lorem - Generate a random world.
- random-title - Generate a random title.
- random-sentence - Generate a random sentence.
- random-paragraph - Generate a random paragraph.
- random-tld - Return a random tld.
- random-domains - Generate a random domain name.
- random-uri - Generate a random url.
- random-email - Generate a random email.
- random-lang - Return a random language name.
- random-mobile - Generate a random chinese mobile phone number.
- random-zipcode - Generate a random chinese zipcode.
- random-ipv4 - Generate a random ipv4 address.
- random-ipv6 - Generate a random ipv6 address.
- random-color - Generate a random color.
- random-identity - Generate a random ID.
Contributing
Pull requests and stars are highly welcome.
For bugs and feature requests, please create an issue.