package-list

0.0.3 • Public • Published

package-list

A thin wrapper around read-installed to list installed packages during runtime. Includes support for listing missing and extraneous packages, and also works great when launched as a child process, which makes it a good candidate for tools like pm2 - instead of listing pm2's dependencies, it will list your own project's dependencies, as expected.

Status

NPM version build status

Installation

$ npm install package-list

Usage

Command-line

./node_modules/.bin/packages

Programmatically

var packages = require('package-list');
 
packages(function(err, pkgs) {
  if (err) throw err;
 
  console.log('Result is', pkgs);
});
 
// Result is { read-installed: '3.1.1', mocha: '1.21.1', should: '4.0.4' }

Tests

$ npm test

Author

Rui Marinho

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    80
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    80
  • 0.0.2
    2
  • 0.0.1
    2

Package Sidebar

Install

npm i package-list

Weekly Downloads

5

Version

0.0.3

License

MIT

Last publish

Collaborators

  • ruimarinho