4 releases
Uses new Rust 2024
| new 0.2.2 | Oct 25, 2025 |
|---|---|
| 0.2.1 | Oct 3, 2025 |
| 0.2.0 | Oct 2, 2025 |
| 0.1.0 | Oct 1, 2025 |
#1544 in Command line utilities
412 downloads per month
180KB
3K
SLoC
giv
A CLI for generating useful values.
Available Commands
giv bytes: Generate random bytes with various encodings.- Base64 (default, no padding):
giv bytes - Hex encoding:
giv bytes -e hex - Base64 with padding:
giv bytes -e base64 --pad - Rust array:
giv bytes -e rust 16 - JavaScript array:
giv bytes -e javascript 16 - TypeScript array:
giv bytes -e typescript 16 - Raw bytes:
giv bytes -e raw 100 | hexyl
- Base64 (default, no padding):
giv chars: Convert emoji shortcodes and character patterns to Unicode.- Emoji:
giv chars :smile: :rocket: :thumbsup: - Fractions:
giv chars 1/4 1/2 3/4 - Symbols:
giv chars "(c)" "(r)" "(tm)" - Arrows:
giv chars -- "->" "<-" "=>" - Punctuation:
giv chars "..." "--" - Greek:
giv chars alpha beta gamma delta lambda pi omega - Multiple:
giv chars 1/4 :smile: "(c)" lambda→¼ 😄 © λ
- Emoji:
giv date: Prints the date in various formats.giv now: Prints the current time in various formats.
giv uuid: Print a random UUID v7.giv key: Prints a strong random key with a 'key_' prefix.giv lorem: Generate lorem ipsum placeholder text.- Words (default):
giv lorem 50 - Sentences:
giv lorem -s 3 - Paragraphs:
giv lorem -p 2
- Words (default):
giv pi: Prints the requested number of digits of PI with rounding.giv rng: Generate cryptographically secure random numbers.- Dice notation:
giv rng 2d6,giv rng d20 - Integer ranges:
giv rng 1..100 - Float ranges:
giv rng 0.0..1.0,giv rng 0.000..1 - Multiple specs:
giv rng 2d6 1..100 0.0..1.0
- Dice notation:
giv --help for basic help. giv <COMMAND> --help for help on a specific command.
Development Notes
- This project uses a whitelist approach to the
.gitignore.
Security
For security vulnerabilities and reporting guidelines, see SECURITY.md.
License
Copyright © 2025 Adam Mill
Licensed under the Apache License, Version 2.0. See LICENSE.txt for details.
Dependencies
~2–4MB
~68K SLoC