npm-package 0.2.0

A simple client for fetching metadata from the npm package
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use npm_package::AsyncNpmClient;
use tokio;

#[tokio::main]
async fn main() {
    let client = AsyncNpmClient::new();
    let is_wsl_package = client.get("is-wsl").await.unwrap();

    println!(
        "Description of is-wsl from the npm registry: {}",
        is_wsl_package.description
    );
}