# hat

> generate random IDs and avoid collisions

Latest version **0.0.3** (published 2011-08-06) · MIT/X11 license · 0 weekly downloads

## Install

```sh
npm install hat
pnpm add hat
yarn add hat
bun add hat
```

## Health

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

Positive: has types package; no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2011-08-06 |
| First published | 2011-08-06 |
| Weekly downloads | 0 |
| License | MIT/X11 |
| TypeScript types | separate (@types/hat) |
| Module format | CommonJS |
| Node | * |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | James Halliday |
| Maintainers | substack |
| Keywords | id, uid, uuid, random, hat, rack, unique |

## Links

- npm: https://www.npmjs.com/package/hat
- Repository: https://github.com/substack/node-hat
- npm.io page: https://npm.io/package/hat

## 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) — 2011-08-06
- 0.0.2 — 2011-08-06
- 0.0.1 — 2011-08-06
- 0.0.0 — 2011-08-06

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