Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

npm-check-global-updates

1.0.5 • Public • Published

npm-check-global-updates Beta npm dependencies devDependencies


Find newer versions of global npm packages.
Supports command line and programmatic usage.
Available for macOS, Windows and Linux.


Contents

  1. Commandline Usage
  2. Programmatic Usage
  3. Platform Support
  4. Roadmap
  5. Contribute
  6. Author

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
>> browserify@14.4.0 express@4.15.3

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:
    // [ 'browserify@14.4.0', 'express@4.15.3' ]
})
.catch((err) => {
    console.error(err);
})

Platform Support

Tested on:

  • macOS Sierra
  • Windows 10 Anniversary
  • Ubuntu 17.10

Roadmap img

  • CI-based automated Testing

Contribute Contribute

Read the contribution documentation first.

  • Dev Chat: Talk about features and suggestions.
  • Issues File bugs and document issues.

Author

sidneys 2017

Install

npm i npm-check-global-updates

DownloadsWeekly Downloads

9

Version

1.0.5

License

MIT

Last publish

Collaborators

  • avatar