2 stable releases
1.0.1 | Dec 2, 2021 |
---|---|
1.0.0 | Nov 16, 2021 |
#63 in #terminal-text
23KB
1K
SLoC
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