Check if module dependencies are outdated
Built with ❤︎ by Tiaan and contributors
$ npm install --save check-if-outdated
# OR
$ yarn add check-if-outdated
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 }, ... ]
$ 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 } ]
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.
Licensed under the MIT License.