checker
a crates.io crate name availability checker
Simply use cargo to install the binary
bash
$ cargo install checker
You can use checker as a command line utility or a rust crate.
``` checker 0.0.2 a crates.io crate name availability checker
USAGE: checker [OPTIONS]
FLAGS: -h, --help Prints help information -V, --version Prints version information
OPTIONS:
-c, --check
Example:
```rust use checker::{check, Crate, Status};
fn main() { let result: Crate = check("t").unwrap();
asserteq!(result.name, "t"); asserteq!(result.istaken(), true); asserteq!(result.is_inactive().unwrap(), true);
assert!(result.dayssincelastupdated().unwrap() >= 1825); assert!(result.data.issome()); assert!(result.owners.is_some()); } ```