Skip to content
/ pkgstat Public

🔥 a universal pkg metadata extraction module for different languages and package managers

License

Notifications You must be signed in to change notification settings

prdpx7/pkgstat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pkgstat

Get metadata of package from node, python and ruby.

Build Status MITlicensed

Install

$ npm install --save pkgstat

Usage

const pkgstat = require('pkgstat');
pkgstat("django", "python")
    .then(resp => {
        console.log(resp);
        /*
        { 
            name: 'Django',
            author: 'Django Software Foundation',
            description: 'A high-level Python Web framework....',
            url: 'http://pypi.python.org/pypi/Django',
            source: 'https://www.djangoproject.com/',
            license: 'BSD',
            version: '1.11rc1',
            statusCode: 200 
        }
        */
    });
pkgstat("somePkgWhichDoesNotExist","node")
    .then(resp => {
        console.log(resp);
        //{statusCode: 404}
    });
pkgstat("request","ruby")
    .then(resp => {
        console.log(resp);
        /*
        {
            name: 'request',
            author: 'Markus Schirp',
            description: 'HTTP request porofication',
            url: 'https://rubygems.org/gems/request',
            source: null,
            license: 'MIT',
            version: '0.0.6',
            statusCode: 200 
        }
        */
    });

About

🔥 a universal pkg metadata extraction module for different languages and package managers

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published