https://github.com/jlyonsmith/nanoid_cli
A Rust based command line interface for the Nanoid library
https://github.com/jlyonsmith/nanoid_cli
Last synced: 4 months ago
JSON representation
A Rust based command line interface for the Nanoid library
- Host: GitHub
- URL: https://github.com/jlyonsmith/nanoid_cli
- Owner: jlyonsmith
- License: unlicense
- Created: 2023-09-11T19:16:00.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-13T22:54:05.000Z (almost 2 years ago)
- Last Synced: 2025-02-23T15:08:24.968Z (4 months ago)
- Language: Rust
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nanoid CLI
[](https://github.com/jlyonsmith/nanoid_cli/blob/main/coverage.json)
[](https://crates.io/crates/nanoid_cli)
[](https://docs.rs/nanoid_cli)This is a command line for the Rust crate [nanoid](https://crates.io/crates/nanoid), a tiny, secure, URL-friendly, unique string ID generator. Nanoid has been ported to over 20 languages. This project provides command line interface to the library so you can manually generate strings. It provides the following options:
- Set the length of the ID
- Generate multiple ID's at once, one per line
- Use a variety of pre-defined alphabets:
- **Decimal** using the digits 0 to 9
- **Hexadecimal** using the digis 0 to 9 and A to F
- **Alpha Numeric** using the characters 0 to 9 and A to Z
- **Full Alpha Numeric** using the characters 0 to 9, A to Z and a to z.
- **Secure URL** the default, URL safe alphabetInstall it with `cargo install nanoid_cli`. Use `nanoid --help` to see the full list of options.
The tool uses the [clap](https://docs.rs/clap/latest/clap/index.html) crate for command line processing.
Pull requests welcomed for additional features, such a customizable alphabets.