moniker-rs

Crates.iomoniker-rs
lib.rsmoniker-rs
version1.0.1
sourcesrc
created_at2021-11-16 18:46:44.862684
updated_at2021-12-02 18:18:41.597725
descriptionRandom name generating tool.
homepagehttps://github.com/igorsaux/moniker-rs
repositoryhttps://github.com/igorsaux/moniker-rs
max_upload_size
id482953
size24,983
(igorsaux)

documentation

README

Moniker-rs

Moniker-rs - is a port of .NET library for generating names with no dependencies.

At the moment there is two types of monikers: Moby and Animal.

  • Animal: generates names like: dapper-ladybird, callous-bear.
  • Moby: generates names like: focused-lovelace, determined-curie.

Examples

Libray

extern crate moniker_rs;
use moniker_rs::{Moby, Animal, Moniker};

// Returns something like "brave-archimedes"
Moby::get_random();
// Returns an array of names ["aardvark", "aardwolf", ...]
Animal::get_names();

See more examples here.

CLI

Creates a random moniker. To use the bin crate - pass one of a monikers type as an argument (case insensitive):

$ moniker-cli animal
mollified-camel

or

$ moniker-cli moby
hardcore-rosalind
Commit count: 2

cargo fmt