| Crates.io | random-zh-name |
| lib.rs | random-zh-name |
| version | 0.1.0 |
| created_at | 2025-06-21 13:22:23.476971+00 |
| updated_at | 2025-06-21 13:22:23.476971+00 |
| description | A Rust command-line tool for generating random Chinese names with customizable options. |
| homepage | |
| repository | https://github.com/WantenMN/random-zh-name.git |
| max_upload_size | |
| id | 1720817 |
| size | 20,721 |
A Rust command-line tool for generating random Chinese names with customizable options.
Ensure you have Rust and Cargo installed. Then, install the crate binary:
cargo install random-zh-name
Run the binary with various options to generate random Chinese names:
random-zh-name [OPTIONS]
-c, --count <NUMBER>: Number of names to generate (default: 1)-s, --surname <SURNAME>: Specific surname to use-l, --length <LENGTH>: Length of the first name in characters--simple: Generate simpler names using only Level 1 characters-h, --help: Display help information-V, --version: Display version informationGenerate a single random name:
random-zh-name
# ["飘杳"]
Generate 5 random names:
random-zh-name --count 5
# ["倍璎", "盟恪呷形", "旨轿鹭", "庆梗镠", "忆弓"]
Generate 3 names with a specific surname "李" and 2-character first names:
random-zh-name -c 3 -s 李 -l 2
# ["李核孺", "李飓龛", "李诜钼"]
Generate simpler names using only Level 1 characters:
random-zh-name --count 10 --simple
# ["第呐有", "敛番", "别观哺泛", "嘉循", "扒拉吕", "梁讳", "每瘫", "寒机挂述", "婴刑", "像越免"]
This project is licensed under the MIT License.