gen-cuid2
v1.0.0
Published
Generate CUID2 IDs
Downloads
4
Readme
gen-cuid2
A simple CLI tool to generate CUID2 IDs of customizable length.
🚀 Features
- Generates one or more CUID2 IDs.
- Customize the number of IDs and the length of each ID.
- Works cross-platform (Linux, macOS, Windows).
📦 Installation
✅ From npm (recommended)
Install globally from npm:
sudo npm install -g gen-cuid2Then use it:
gen-cuid2⚙️ From source (for development / custom builds)
# Clone the repository
git clone https://github.com/cblauvelt/gen-cuid2.git
cd gen-cuid2
# Install dependencies
npm install
# Build the project
npm run build
# Install globally
sudo npm install -g .💻 Usage
Generate a single CUID2 (default)
gen-cuid2Generate multiple CUID2s
gen-cuid2 --count 5or
gen-cuid2 -c 5Specify the length of the IDs
gen-cuid2 --length 32or
gen-cuid2 -l 32Combine options
gen-cuid2 --count 3 --length 40🛠️ Development
To run tests:
npm run build
npm test📄 License
This project is licensed under the MIT License.
🐛 Issues
Found a bug? Please open an issue here: https://github.com/cblauvelt/gen-cuid2/issues
🌐 Links
🤝 Contributing
Contributions, issues and feature requests are welcome! Feel free to open a pull request or an issue.
Maintainer: Christopher Blauvelt
