Crates.io | moniker-rs |
lib.rs | moniker-rs |
version | 1.0.1 |
source | src |
created_at | 2021-11-16 18:46:44.862684 |
updated_at | 2021-12-02 18:18:41.597725 |
description | Random name generating tool. |
homepage | https://github.com/igorsaux/moniker-rs |
repository | https://github.com/igorsaux/moniker-rs |
max_upload_size | |
id | 482953 |
size | 24,983 |
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
.
dapper-ladybird
, callous-bear
.focused-lovelace
, determined-curie
.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.
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