Socket
Socket
Sign inDemoInstall

crates.io

Package Overview
Dependencies
9
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    crates.io

A crates.io API client


Version published
Weekly downloads
49
decreased by-50.51%
Maintainers
1
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 27 Dec 2023

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc