version-checker
v0.1.5
Published
Node version checker
Downloads
20
Maintainers
Readme
version-checker
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