nanoid_cli

Crates.ionanoid_cli
lib.rsnanoid_cli
version1.0.0
sourcesrc
created_at2023-09-11 20:20:26.33216
updated_at2023-09-11 20:20:26.33216
descriptionNanoid CLI
homepage
repositoryhttps://github.com/jlyonsmith/nanoid_cli
max_upload_size
id970079
size37,263
John Lyon-Smith (jlyonsmith)

documentation

README

Nanoid CLI

coverage Crates.io Docs.rs

This is a command line for the Rust crate 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 alphabet

Install it with cargo install nanoid_cli. Use nanoid --help to see the full list of options.

The tool uses the clap crate for command line processing.

Pull requests welcomed for additional features, such a customizable alphabets.

Commit count: 3

cargo fmt