🚀 Launch Week Day 2:Introducing Custom Tabs for Org Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

dependency-status

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dependency-status

Check whether your public npm dependencies (or private github dependencies) are up-to-date

latest
Source
npmnpm
Version
0.2.7
Version published
Weekly downloads
4
100%
Maintainers
1
Weekly downloads
 
Created
Source

dependency-status

Check whether your public npm dependencies (or private github dependencies) are up-to-date

npm install dependency-status

Usage

Simply call dependency-status with module or github repository name

var check = require('dependency-status');

check('dependency-status', function(err, report) {
	console.log(report);
});

The above result will look like this

{
	name: 'dependency-status',
	version: '0.1.0',
	dependencies: [{
		name: 'request',
		latest: '2.34.0',
		used: '^2.34.0',
		status: 'latest'
	}, {
		...
	}]
}

The status of each dependency can be up-to-date or outdated.

You can also use dependency-status if your node project is not on npm but only on github (like an app). Simply pass username/repository to the function

check('my-github-username/my-repo', callback);

If your repository is private you need to pass credentials as well as the second parameter

check('my-user/my-private-repo', {
	username: 'this-user-has-read-access-to-the-repo',
	password: 'this-is-his-password'
}, callback);

If you pass a credentials map you can also check the status of your modules private github dependencies

License

MIT

FAQs

Package last updated on 08 Jul 2014

Did you know?

Socket

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