1.2.2 • Published 5 years ago

is-outdated v1.2.2

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

is-outdated Build Status

Greenkeeper badge

This is a simple node module that tells you when the installed version of a node package (i.e app) is outdated.

Note: if you need a more complete solution check out update-notifier.

Install

npm install --save is-outdated

Usage

var isOutdated = require('is-outdated');
var pkg = require('./package.json');

isOutdated(pkg.name, pkg.version, function (err, res) {
    console.log('The latest version of this app is %s', res.version);
    console.log('Please updated it with: npm update -g mypackage');
});

API

isOutdated(name, version, callback)

  • name (string) the name of the package
  • version (string) a semver compatible string
  • callback (function)
    • err
    • data - false when the package is up to date or an object in the form: { version: 'x.x.x' }

License

MIT

1.2.2

5 years ago

1.2.1

6 years ago

1.2.0

8 years ago

1.1.0

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago