-
Notifications
You must be signed in to change notification settings - Fork 3
Usage
Caleb Ephrem edited this page Sep 20, 2025
·
2 revisions
UCID (Unique Custom ID) is a lightweight utility for generating collision-resistant, human-readable IDs. Perfect for tagging resources, generating filenames, or creating unique keys in distributed systems.
Install via npm:
npm install unique-custom-idOr with yarn:
yarn add unique-custom-idUse it with your preferred module system:
ES Modules:
import ucid from 'unique-custom-id';CommonJS:
const ucid = require('unique-custom-id');Here's the most basic usage:
import ucid from 'unique-custom-id';
const id = ucid();
console.log(id);
// Example output: 04s1icu3-i8azmiyh-7rn045ip-sgrdupfqEach ID is:
- π Collision-resistant
- π§ Human-readable
- π Composed of multiple entropy-rich segments
Next up β Configuration Options
π unique-custom-id β most customizable ID generator you'll ever meet
π See our contributing guide for guidelines on how to contribute
π¬ Join the conversation on discussions
πͺͺ Licensed under MIT β free to fork, remix, and build upon
π Maintained by @calebephrem β contributions welcome!
β¨ Fork it. Tweak it. Make it yours.
- π Home
- π οΈ Usage
- π οΈ How To Use UCID
- π¦ Installation
- β Importing
- π Generate Simple ID
- π§© Configuration Options
- π§° Predefined Formats
- ποΈ Predefined Formats
- π§ Format Aliases
- π Format List
- π§ͺ Usage Examples
- β Remember
- 𧬠CLI
- π UCID CLI
- π Quick Start
- π CLI Options
- π§ͺ Examples
- πͺ£ Entropy Space