Socket
Socket
Sign inDemoInstall

about-package

Package Overview
Dependencies
50
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    about-package

A lightweight package that retrieve the information of a npm package


Version published
Maintainers
1
Created

Readme

Source

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

AttributeTypeDescription
namestringPackage name
versionstringLatest version of that npm package
descriptionstringDescription of that npm package
licensestringType of license of that npm package
downloadsobjectThis attribute contains number of download counts on last day, last week and last month
githubobjectThis 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.

Keywords

FAQs

Last updated on 04 Nov 2018

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc