Skip to content

tiaanduplessis/check-if-outdated

Repository files navigation

check-if-outdated

Check if module dependencies are outdated



Built with ❤︎ by Tiaan and contributors

Table of Contents

Table of Contents
  • Install
  • Usage
  • CLI
  • Contribute
  • License
  • Install

    Greenkeeper badge

    $ 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.

    About

    Simple module to checks if your module or any of its dependencies are outdated

    Topics

    Resources

    License

    Stars

    Watchers

    Forks

    Packages

    No packages published