crates.io
TypeScript icon, indicating that this package has built-in type declarations

2.2.7 • Public • Published

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

Package Sidebar

Install

npm i crates.io

Weekly Downloads

49

Version

2.2.7

License

GPL-3.0

Unpacked Size

69.6 kB

Total Files

57

Last publish

Collaborators

  • ffflorian