New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

crates.io

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crates.io

A crates.io API client

1.1.5
Source
npm
Version published
Weekly downloads
19
-73.24%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

api

FAQs

Package last updated on 17 Jan 2020

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