checker

Build crates.io

checker is a simple crates.io crate name availability checker, it lets you easily check multiple crate names for availability and activity data.

Screen Shot 2021-08-27 at 12 15 17 PM

Installation

Simply use cargo to install the binary

bash $ 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 ... Check crate name availability -o, --output Output file ```

Library

Example:

```rust use checker::{check, Package, Status};

let result: Package = 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()); ```