npm-check-global-updates
v1.1.1
Published
Find newer versions of global npm packages
Downloads
9
Maintainers
Readme
npm-check-global-updates
Contents
Commandline Usage
Installation
$ npm install --global npm-check-global-updates
Usage
$ npm-check-global-updates
Show all Options
$ npm-check-global-updates --help
Example
$ npm-check-global-updates
>> [email protected] [email protected]
Programmatic Usage
Installation
$ npm install npm-check-global-updates
API
The module returns a Function
which returns a Promise
.
const checkGlobalUpdates = require('npm-check-global-updates')
checkGlobalUpdates()
.then((result) => {
console.log(result);
})
The Promise
resolves with an Array
:
- Array - Package list (name@version)
Example
const checkGlobalUpdates = require('npm-check-global-updates')
checkGlobalUpdates()
.then((packages) => {
console.log(packages);
// Returns:
// [ '[email protected]', '[email protected]' ]
})
.catch((err) => {
console.error(err);
})
Platform Support
Tested on:
- macOS Sierra
- Windows 10 Anniversary
- Ubuntu 17.10
Roadmap
- [ ] CI-based automated Testing
Contribute
Read the contribution documentation first.
Author
sidneys 2017