| Crates.io | cuid2gen |
| lib.rs | cuid2gen |
| version | 0.1.3 |
| created_at | 2024-12-03 04:36:18.747632+00 |
| updated_at | 2024-12-03 06:46:53.393573+00 |
| description | A command-line tool for generating CUID2 identifiers |
| homepage | https://github.com/raikusy/cuid2gen |
| repository | https://github.com/raikusy/cuid2gen |
| max_upload_size | |
| id | 1469662 |
| size | 43,723 |
A fast and secure command-line tool for generating CUID2 identifiers - Collision-resistant Unique IDs.
cargo install cuid2gen
brew install cuid2gen
nix-env -i cuid2gen
Generate a single CUID2:
cuid2gen
Generate multiple CUIDs:
cuid2gen -c 5
Generate as JSON array:
cuid2gen -c 3 --format json
Generate comma-separated values:
cuid2gen -c 3 --format csv
USAGE:
cuid2gen [OPTIONS]
OPTIONS:
-c, --count <COUNT> Number of IDs to generate [default: 1]
-l, --length <LENGTH> Length of each ID (not supported in current version)
-f, --format <FORMAT> Output format: line (default), csv, json
-q, --quiet Only output errors
-h, --help Print help
-V, --version Print version
CUID2s are designed to be:
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)# Clone the repository
git clone https://github.com/raikusy/cuid2gen.git
cd cuid2gen
# Build
cargo build
# Run tests
cargo test
# Run formatter
cargo fmt
# Run linter
cargo clippy
This project is licensed under the MIT License - see the LICENSE file for details.