# uuid-validate

> Javascript validator for UUID versions 1 through 5

Latest version **0.0.3** (published 2018-05-26) · MIT license · 0 weekly downloads

## Install

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

## Health

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

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

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2018-05-26 |
| First published | 2015-02-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/uuid-validate) |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 59 |
| Author | Connor Peet |
| Maintainers | connor.peet |
| Keywords | uuid, validate, validator |

## Links

- npm: https://www.npmjs.com/package/uuid-validate
- Repository: https://github.com/WatchBeam/uuid-validate
- Issues: https://github.com/WatchBeam/uuid-validate/issues
- npm.io page: https://npm.io/package/uuid-validate

## 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

- 0.0.3 (latest) — 2018-05-26
- 0.0.2 — 2015-08-07
- 0.0.1 — 2015-02-08

## README

# uuid-validator

[![Build Status](https://travis-ci.org/WatchBeam/uuid-validate.svg)](https://travis-ci.org/WatchBeam/uuid-validate)

Useful little package to validate UUIDs in Node.js. Usage:

```js
var validate = require('uuid-validate');

// Let's validate a uuid version 1. If we don't pass a version, it'll
// infer it based on the uuid itself.
validate('95ecc380-afe9-11e4-9b6c-751b66dd541e'); // => true

// We can tell it what version to expect, and if it gets the wrong
// version, it'll return false.
validate('95ecc380-afe9-11e4-9b6c-751b66dd541e', 1); // => true (it's version 1)
validate('95ecc380-afe9-11e4-9b6c-751b66dd541e', 4); // => false (it's not version 4)

// You can also pass buffers instead of strings.
// This works for UUID versions 1 through 4

// If you want to find out what version a UUID is:
validate.version('95ecc380-afe9-11e4-9b6c-751b66dd541e'); // => 1
```

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