Coder Social home page Coder Social logo

npm-update-outdated's People

Stargazers

 avatar  avatar

Forkers

bryanh digideskio

npm-update-outdated's Issues

--missing flag doesn't seem to work

When I run
npm outdated
I get a lot of packages listed as MISSING but when I run
npm-update-outdated
or
npm-update-outdated --missing
I just get
All your NPM modules are up to date. You rule!
and nothing is installed

npm version is 2.5.1

Warning about global

Thanks for creating this, it was exactly what i was looking for.

I saw the warning about preferring global installation when installing this. It doesn't bother me but some people don't like to see any kind of warning and when I talk to them I like to avoid such contentious conversations.

I prefer to not install globally because then I can have everything in a nice bundle and run from node_modules/.bin/npm-update-outdated. Is there any specific reason not to do this (for example, does it break the module)? If not, would it be possible to disable this warning?

Can you add a --check-only flag?

My use case: As part of a pre-commit set of scripts that run I use this module npm-updated-outdated to first update all modules and then run the tests etc. Makes sense right? Here's an example: https://github.com/guyellis/http-status-check/blob/master/package.json#L19

On the above project the only way to check non-explicit versions is to do an npm update. On some projects we have explicit versions against all dependencies. The only time we need this check to fail is when the package.json doesn't match what is in node_modules or is missing in node_modules or is extra in node_modules.

The drawback to using npm-updated-outdated is that in this use case it takes too long to run. I was wondering if you could add a --check-only or --check-explicit-only flag that looked at the package.json dependencies and at the installed modules and failed only if they didn't match. This would obviously run really fast compared to the regular functionality of this module and would add great value to that type of project.

This helps when a member of the team pulls down the latest code (from say the master branch) and forgets to do an npm update. The first time they run this script the pre-tests would fail letting them know to run npm-update-outdated. As a bonus there would be another flag to say automatically run npm-update-outdated if the --check-only flag fails.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.