Skip to content

Sanity check of installed packages as per package.json

License

Notifications You must be signed in to change notification settings

postmanlabs/packity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

packity

Sanity check of installed packages as per package.json

Usage

CLI

npm install packity@beta -g;
packity check <module-folder>

use packity check --help for more CLI options

Module

var packity = require('packity');
packity({ path: 'my-path', dev: true}, function (err, results) {
	// results look like
	// {
	//   "package": {} // name, version, dependencies
	//   "installed": {} // list of installed modules
	//   "status": {} // status of package dependencies with 'message', 'code', 'ok' keys.
	// }
	console.log(results);
});