Thanks to visit codestin.com
Credit goes to lib.rs

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

Codestin Search App Codestin Search App Codestin Search App Codestin Search App

412 downloads per month

Apache-2.0

180KB
3K SLoC

giv

Crates.io Documentation Downloads License

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
  • 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¼ 😄 © λ
  • 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
  • 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

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