check-if-outdated

2.0.0 • Public • Published

Table of Contents

Check if module dependencies are outdated



Built with ❤︎ by Tiaan and contributors

Table of Contents

Table of Contents
  • Install
  • Usage
  • CLI
  • Contribute
  • License
  • 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.

    Package Sidebar

    Install

    npm i check-if-outdated

    Weekly Downloads

    2

    Version

    2.0.0

    License

    MIT

    Last publish

    Collaborators

    • tiaanduplessis