# fable-uuid

> A simple UUID Generator.

Latest version **3.0.15** (published 2026-07-16) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 45/100 (D)** — status: active.

Positive: no vulnerabilities.

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

## Facts

| | |
|---|---|
| Version | 3.0.15 |
| Published | 2026-07-16 |
| First published | 2015-03-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 171.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Steven Velozo |
| Maintainers | stevenvelozo, bigal |
| Keywords | logging |

## Links

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

## Dependencies (1)

- [fable-serviceproviderbase](https://npm.io/package/fable-serviceproviderbase.md) ^3.0.19

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 3.0.15 (latest) — 2026-07-16
- 3.0.14 — 2026-04-29
- 3.0.13 — 2026-02-27
- 3.0.12 — 2026-02-18
- 3.0.11 — 2024-09-25
- 3.0.10 — 2024-09-25
- 3.0.9 — 2024-09-25
- 3.0.8 — 2024-09-25
- 3.0.7 — 2024-06-08
- 3.0.6 — 2023-10-07
- 3.0.5 — 2023-05-10
- 3.0.4 — 2023-05-08
- 3.0.3 — 2023-05-08
- 3.0.2 — 2023-02-28
- 3.0.1 — 2023-02-21
- … 10 more at https://npm.io/package/fable-uuid/versions

## README

# Fable-UUID

> **[Read the Fable-UUID Documentation](https://fable-retold.github.io/fable-uuid/)**

A simple, flexible UUID generator for Node.js and browsers.


## Features

- **RFC 4122 v4 UUIDs** - Standards-compliant UUID generation using cryptographic random bytes
- **Random String Mode** - Configurable length and character dictionary for custom identifiers
- **Cross-Platform** - Works in Node.js (via `crypto`) and browsers (via WebCrypto API with fallbacks)
- **Fable Service Provider** - Integrates as a service in the Fable ecosystem
- **Minimal Dependencies** - Only depends on `fable-serviceproviderbase`

## Installation

```bash
npm install fable-uuid
```

## Quick Start

```javascript
const libFableUUID = require('fable-uuid');

// Standard v4 UUID
const uuid = new libFableUUID();
console.log(uuid.getUUID());
// => "f47ac10b-58cc-4372-a567-0e02b2c3d479"

// Random string mode
const shortId = new libFableUUID({ UUIDModeRandom: true, UUIDLength: 12 });
console.log(shortId.getUUID());
// => "a1B2c3D4e5F6"
```

## Configuration

| Option | Type | Default | Description |
|--------|------|---------|-------------|
| `UUIDModeRandom` | boolean | `false` | Enable random string mode instead of v4 UUIDs |
| `UUIDLength` | number | `8` | Length of generated string in random mode |
| `UUIDDictionary` | string | `'0123456789abcdef...XYZ'` | Character set for random mode |

## Documentation

Full documentation is available at **[fable-retold.github.io/fable-uuid](https://fable-retold.github.io/fable-uuid/)**.

- [Configuration Guide](https://fable-retold.github.io/fable-uuid/#/configuration)
- [API Reference](https://fable-retold.github.io/fable-uuid/#/api)
- [Browser Support](https://fable-retold.github.io/fable-uuid/#/browser-support)

## Related Packages

- [fable](https://github.com/fable-retold/fable) - Application services framework
- [fable-serviceproviderbase](https://github.com/fable-retold/fable-serviceproviderbase) - Service provider base class

## License

MIT

## Contributing

Pull requests are welcome. For details on our code of conduct, contribution process, and testing requirements, see the [Retold Contributing Guide](https://github.com/fable-retold/retold/blob/main/docs/contributing.md).

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