# random-identity

> Generate a random ID.

Latest version **1.0.0** (published 2016-04-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install random-identity
pnpm add random-identity
yarn add random-identity
bun add random-identity
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-04-19 |
| First published | 2016-04-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | bubkoo |
| Maintainers | bubkoo |
| Keywords | identity, id, uuid, guid, generator, generate, random, randomly, rand |

## Links

- npm: https://www.npmjs.com/package/random-identity
- Repository: https://github.com/mock-end/random-identity
- Homepage: https://github.com/mock-end/random-identity#readme
- Issues: https://github.com/mock-end/random-identity/issues
- npm.io page: https://npm.io/package/random-identity

## Dependencies (3)

- [clamp](https://npm.io/package/clamp.md) ^1.0.1
- [to-length](https://npm.io/package/to-length.md) ^1.0.1
- [random-natural](https://npm.io/package/random-natural.md) ^1.0.1

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2016-04-19
- 0.0.0 — 2016-04-19

## README

# random-identity

> Generate a random ID.

[![MIT License](https://img.shields.io/badge/license-MIT_License-green.svg?style=flat-square)](https://github.com/mock-end/random-identity/blob/master/LICENSE)

[![build:?](https://img.shields.io/travis/mock-end/random-identity/master.svg?style=flat-square)](https://travis-ci.org/mock-end/random-identity)
[![coverage:?](https://img.shields.io/coveralls/mock-end/random-identity/master.svg?style=flat-square)](https://coveralls.io/github/mock-end/random-identity)


## Install

```
$ npm install --save random-identity 
```


## Usage

> For more use-cases see the [tests](https://github.com/mock-end/random-identity/blob/master/test/spec/index.js)

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

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

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

## Related

- [random-integral](https://github.com/mock-end/random-integral) - Generate a random integer.
- [random-natural](https://github.com/mock-end/random-natural) - Generate a random natural number.
- [random-decimal](https://github.com/mock-end/random-decimal) - Generate a random decimal.
- [random-index](https://github.com/mock-end/random-index) - Generate a random array-like index.
- [random-binary](https://github.com/mock-end/random-binary) - Generate a random binary number.
- [random-octal](https://github.com/mock-end/random-octal) - Generate a random octal.
- [random-hexadecimal](https://github.com/mock-end/random-hexadecimal) - Generate a random hexadecimal number.
- [random-unicode](https://github.com/mock-end/random-unicode) - Generate a random unicode.
- [random-bool](https://github.com/mock-end/random-bool) - Generate a random boolean (true/false).
- [random-char](https://github.com/mock-end/random-char) - Generate a random char.
- [random-lorem](https://github.com/mock-end/random-lorem) - Generate a random world.
- [random-title](https://github.com/mock-end/random-title) - Generate a random title.
- [random-sentence](https://github.com/mock-end/random-sentence) - Generate a random sentence.
- [random-paragraph](https://github.com/mock-end/random-paragraph) - Generate a random paragraph.
- [random-tld](https://github.com/mock-end/random-tld) - Return a random tld.
- [random-domains](https://github.com/mock-end/random-domains) - Generate a random domain name.
- [random-uri](https://github.com/mock-end/random-uri.git) - Generate a random url.
- [random-email](https://github.com/mock-end/random-email) - Generate a random email.
- [random-lang](https://github.com/mock-end/random-lang) - Return a random language name.
- [random-mobile](https://github.com/mock-end/random-mobile) - Generate a random chinese mobile phone number.
- [random-zipcode](https://github.com/mock-end/random-zipcode) - Generate a random chinese zipcode.
- [random-ipv4](https://github.com/mock-end/random-ipv4) - Generate a random ipv4 address.
- [random-ipv6](https://github.com/mock-end/random-ipv6) - Generate a random ipv6 address.
- [random-color](https://github.com/mock-end/random-color) - Generate a random color.
- [random-identity](https://github.com/mock-end/random-identity) - Generate a random ID.


## Contributing

Pull requests and stars are highly welcome.

For bugs and feature requests, please [create an issue](https://github.com/mock-end/random-identity/issues/new).

---
_Source: https://npm.io/package/random-identity · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
