3 releases
0.0.3 | Aug 27, 2021 |
---|---|
0.0.2 | May 4, 2021 |
0.0.1 | May 3, 2021 |
#14 in #crates-io
19KB
372 lines
checker
checker
is a simple crates.io crate name availability checker,
it lets you easily check multiple crate names for availability and activity data.
Installation
Simply use cargo to install the binary
$ cargo install checker
Usage
You can use checker as a command line utility or a library.
CLI
checker 0.0.3
a crates.io crate name availability checker
USAGE:
checker [OPTIONS]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-c, --check <names>... Check crate name availability
-o, --output <output> Output file
Library
Example:
use checker::{check, Package, Status};
let result: Package = check("t").unwrap();
assert_eq!(result.name, "t");
assert_eq!(result.is_taken(), true);
assert_eq!(result.is_inactive().unwrap(), true);
assert!(result.days_since_last_updated().unwrap() >= 1825);
assert!(result.data.is_some());
assert!(result.owners.is_some());
Dependencies
~8–21MB
~303K SLoC