Skip to content

Latest commit

 

History

History

libraries.io

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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