https://github.com/terror/checker
A crates.io crate name availability checker
https://github.com/terror/checker
cli rust-crate utility
Last synced: 5 months ago
JSON representation
A crates.io crate name availability checker
- Host: GitHub
- URL: https://github.com/terror/checker
- Owner: terror
- License: cc0-1.0
- Created: 2021-05-02T23:57:03.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-27T17:33:26.000Z (almost 4 years ago)
- Last Synced: 2025-02-06T16:54:01.622Z (5 months ago)
- Topics: cli, rust-crate, utility
- Language: Rust
- Homepage:
- Size: 54.7 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING
- License: LICENSE
Awesome Lists containing this project
README
## checker
[](https://github.com/terror/checker/actions/workflows/build.yaml)
[](https://crates.io/crates/checker)`checker` is a simple [crates.io](https://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
```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 checkerUSAGE:
checker [OPTIONS]FLAGS:
-h, --help Prints help information
-V, --version Prints version informationOPTIONS:
-c, --check ... Check crate name availability
-o, --output Output file
```### Library
Example:
```rust
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());
```