New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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

0.3.6
Version published
Weekly downloads
19
-73.24%
Maintainers
1
Weekly downloads
 
Created

crates.io npm version

A crates.io API client.

Usage

A complete documentation is available at https://ffflorian.github.io/crates.io.js/.

Installation

Run yarn add crates.io or npm install 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 03 Apr 2019

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