2.0.0 • Published 8 years ago

check-if-outdated v2.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

Install

$ npm install --save check-if-outdated
# OR
$ yarn add check-if-outdated

Usage

const checkIfOutdated = require('check-if-outdated')

checkIfOutdated('jest', 'husky').then(console.log)
//[ { currentVersion: '^18.0.2',
//    newVersion: '19.0.2',
//    name: 'jest',
//    dependencies: { 'jest-cli': '^19.0.2' },
//    bin: { jest: './bin/jest.js' },
//    directories: {},
//    dist:
//     { shasum: 'b794faaf8ff461e7388f28beef559a54f20b2c10',
//       tarball: 'https://registry.npmjs.org/jest/-/jest-19.0.2.tgz' },
//    engines: { node: '>= 4' },
//    _hasShrinkwrap: false }, ... ]

CLI

$ npm install --global check-if-outdated
# OR
$ yarn global add check-if-outdated

Then:

$ check-if-outdated jest
#[ { currentVersion: '^18.0.2',
#    newVersion: '19.0.2',
#    name: 'jest',
#    dependencies: { 'jest-cli': '^19.0.2' },
#    bin: { jest: './bin/jest.js' },
#    directories: {},
#    dist:
#     { shasum: 'b794faaf8ff461e7388f28beef559a54f20b2c10',
#       tarball: 'https://registry.npmjs.org/jest/-/jest-19.0.2.tgz' },
#    engines: { node: '>= 4' },
#    _hasShrinkwrap: false } ]

Contribute

Contributions are welcome. Please open up an issue or create PR if you would like to help out.

Note: If editing the README, please conform to the standard-readme specification.

License

Licensed under the MIT License.

2.0.0

8 years ago

0.1.1

9 years ago

0.1.0

9 years ago