# uniq-id

> Unique ID generator with a custom pattern.

Latest version **1.0.0** (published 2015-12-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install uniq-id
pnpm add uniq-id
yarn add uniq-id
bun add uniq-id
```

## 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 | 2015-12-05 |
| First published | 2015-12-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Dallas Read |
| Maintainers | dallasread |
| Keywords | uuid, id, unique, uniq-id |

## Links

- npm: https://www.npmjs.com/package/uniq-id
- Repository: https://github.com/dallasread/uniq-id
- Homepage: https://github.com/dallasread/uniq-id#readme
- Issues: https://github.com/dallasread/uniq-id/issues
- npm.io page: https://npm.io/package/uniq-id

## 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) — 2015-12-05

## README

To use `uniq-id` simply:

```
var uniqID = require('uniq-id');

uniqID();
// '5bc1afc03bb3e5b89838'
```

If you want a particular pattern or character set:
**generateUUID(Pattern, # of characters)**

```
uniqID.generateUUID('xxxxyxxxxyxxxxyxxxxy', 16)(); // Default behaviour
// 'a2b6b957f9eeb5a3f88a'

uniqID.generateUUID('xxx-xxx', 2)();
// '110-100'

uniqID.generateUUID('5xxx-4xxx-3xxx', 62)();
// '51f9-4wIs-30BX'
```

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