Skip to content

nghiattran/version-checker

Repository files navigation

version-checker NPM version Build Status Dependency Status

Check for outdated and lastest node packages.

Installation

$ npm install --save version-checker

Usage

var vercheck = require('version-checker');

vercheck.check_local_packages().then(function(report){
	// "report" contains all:
	// 1. Package names
	// 2. Local version
	// 3. Available version specified in package.json
	// 4. Latest version on www.npmjs.com
}, function(error){
	// error handler
})

vercheck.check_global_packages().then(function(report){
	// "report" contains all:
	// 1. Package names
	// 2. Local version
	// 3. Latest version on www.npmjs.com
}, function(error){
	// error handler
})

vercheck.check_prefix_packages().then(function(report){
	// "report" contains all:
	// 1. Package names
	// 2. Local version
	// 3. Latest version on www.npmjs.com
}, function(error){
	// error handler
})

Return format

├── fullfilled							// Packages that are found on www.npmjs.com
│   ├── pro								// Packages that are installed with '--save'
│   │   ├── package 1
│   │   ├── package 2
│   │   ...
│   ├── dev								// Packages that are installed with '--save-dev'
│   │   ├── package 1
│   │   ├── package 2
│   	...
├── error								// Packages that are not found on www.npmjs.com
│   ├── package 1
│   ├── package 2
	....

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Author

Nghia Tran

License

MIT © NghiaTTran

About

A version checker for npm

Resources

License

Stars

Watchers

Forks

Packages

No packages published