🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

libraries.io

Package Overview
Dependencies
Maintainers
0
Versions
65
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.10
latest
Source
npm
Version published
Weekly downloads
118
-43%
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

api

FAQs

Package last updated on 19 Mar 2025

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