crates.io

crates.io npm version

A crates.io API client.

Installation

Run yarn add crates.io or npm install crates.io.

Usage

A complete documentation is available at https://ffflorian.github.io/api-clients/packages/crates.io/.

Example

import {CratesIO} from 'crates.io';

const cratesIO = new CratesIO();

cratesIO
.summary()
.then(data => {
...
});

cratesIO
.api.crates.getAuthors('ripgrep', '0.10.0')
.then(data => {
...
});

cratesIO
.api.crates.getCrates('http', {per_page: 10})
.then(data => {
...
});

Build

yarn
yarn dist

Generated using TypeDoc