# is-uuid

> UUID check for Node and the browser

Latest version **1.0.2** (published 2015-12-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-uuid
pnpm add is-uuid
yarn add is-uuid
bun add is-uuid
```

## Health

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

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2015-12-21 |
| First published | 2015-12-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/is-uuid) |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 29 |
| Author | Marwan Butrous |
| Maintainers | afram |
| Keywords | UUID, v1, v2, v3, v4, v5, nil, regex |

## Links

- npm: https://www.npmjs.com/package/is-uuid
- Repository: https://github.com/afram/is-uuid
- Homepage: https://github.com/afram/is-uuid#readme
- Issues: https://github.com/afram/is-uuid/issues
- npm.io page: https://npm.io/package/is-uuid

## 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.2 (latest) — 2015-12-21
- 1.0.1 — 2015-12-21
- 1.0.0 — 2015-12-21

## README

# is-uuid
UUID check for node and the browser

## Usage

### Specific UUID version
```js
const isUUID = require('is-uuid');

isUUID.v1('857b3f0a-a777-11e5-bf7f-feff819cdc9f'); // true
isUUID.v2('9a7b330a-a736-21e5-af7f-feaf819cdc9f'); // true
isUUID.v3('0a7b330a-a736-35ea-8f7f-feaf019cdc00'); // true
isUUID.v4('c51c80c2-66a1-442a-91e2-4f55b4256a72'); // true
isUUID.v5('5a2de30a-a736-5aea-8f7f-ad0f019cdc00'); // true
```

### Any non-nil UUID version
```js
// returns true for v1 - v5 UUID. Will return false for nil UUID
isUUID.anyNonNil('c51c80c2-66a1-442a-91e2-4f55b4256a72'); // true
```

### Nil UUID check
```js
// returns true for nil UUID
isUUID.nil('00000000-0000-0000-0000-000000000000'); // true
```

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