A libraries.io API client. For a documentation on the API see https://libraries.io/api/.
Run yarn add libraries.io
or npm install libraries.io
.
A complete documentation is available at https://ffflorian.github.io/api-clients/packages/libraries.io/.
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 => {
// ...
});
yarn
yarn test