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

libraries.io

Package Overview
Dependencies
Maintainers
0
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libraries.io

A libraries.io API client

  • 3.2.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
18
increased by80%
Maintainers
0
Weekly downloads
 
Created
Source

libraries.io npm version

A libraries.io API client. For a documentation on the API see https://libraries.io/api/.

Installation

Run yarn add libraries.io or npm install libraries.io.

Usage

A complete documentation is available at https://ffflorian.github.io/api-clients/packages/libraries.io/.

Example

import {LibrariesIO} from 'libraries.io';

const librariesIO = new LibrariesIO('my-api-key');

librariesIO.api.project.getProject('npm', 'grunt').then(response => {
  //
});

librariesIO.api.project
  .search('grunt', {
    filter: {
      platforms: ['npm'],
      licenses: ['MIT'],
    },
  })
  .then(projects => {
    // ...
  });

librariesIO.api.github.user.getUser('ffflorian').then(user => {
  // ...
});

librariesIO.api.platform.getPlatforms({page: 2, perPage: 5}).then(platforms => {
  // ...
});

librariesIO.api.user.subscribe('npm', 'grunt').then(subscription => {
  // ...
});

Build and test

yarn
yarn test

Keywords

FAQs

Package last updated on 02 Nov 2024

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc