about-package
A lightweight package that retrieve the information of a npm package
Last updated 2 years ago by nutboltu .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install about-package 
SYNC missed versions from official npm registry.

about-package

dependencies Status Build Status

A lightweight package that retrieve the information of a npm package

Installation

npm install --save about-package

Usage

var aboutPackage = require('about-package');

aboutPackage('express', function(err, info) {
  if (err) {
    console.error(err);
  }
  else console.log(info);
});

Output

Attribute Type Description
name string Package name
version string Latest version of that npm package
description string Description of that npm package
license string Type of license of that npm package
downloads object This attribute contains number of download counts on last day, last week and last month
github object This attribute contains github information of that npm package. e.g: stars, forks, open issues, watchers, last updated and created

Sample Output

{ 
  name: 'express',
  version: '4.16.2',
  description: 'Fast, unopinionated, minimalist web framework',
  license: 'MIT',
  downloads: {
    lastDay: 726729,
    lastWeek: 4254539,
    lastMonth: 4254539
  },
  github: {
    stars: 36286,
    forks: 6541,
    openIssues: 166,
    watchers: 36286,
    lastUpdated: '2018-01-26T13:00:10Z',
    created: '2009-06-26T18:56:01Z' 
  }
}

License

MIT Licensed. Copyright (c) Farhad Yasir 2018.

Current Tags

  • 1.2.0                                ...           latest (2 years ago)

3 Versions

  • 1.2.0                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (3)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |