A crates.io API client.
Run yarn add crates.io
or npm install crates.io
.
A complete documentation is available at https://ffflorian.github.io/api-clients/packages/crates.io/.
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 => {
...
});
yarn
yarn dist