Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More

crates.io

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crates.io

A crates.io API client


Version published
Maintainers
1
Created

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

FAQs

Package last updated on 31 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts