node package manager
Stop writing boring code. Discover, share, and reuse within your team. Create a free org »

npm-update-outdated

npm-update-outdated

build status npm version

This module thinly wraps the npm update command with a --filter option in order to update modules matching a string or regex pattern.

By default, npm-update-outdated will update each of your project's node dependencies to the wanted version shown by the npm outdated command.

Installation

npm install -g npm-update-outdated

Usage

$ cd /path/to/your/node/project
$ npm-update-outdated [options]

Options

$ npm-update-outdated --help
 
  Usage: npm-update-outdated [options]
 
  Options:
 
    -h, --help               output usage information
    -V, --version            output the version number
    --filter <string|regex>  filter packages to be updated by string or regex
    --missing                install missing modules
    --save                   pass thru --save option to npm command
    --save-dev               pass thru --save-dev option to npm command
    --save-optional          pass thru --save-optional option to npm command
    --save-exact             pass thru --save-exact option to npm command
    --check-only             output list of outdated top-level modules

TODO

Upcoming features include the following:

  • Update modules to the "latest" version as specified by npm outdated; This will include per module confirmation, because going to latest could break an application.

Requests?

If you're considering making use of npm-update-outdated but it's missing a feature you might like, drop me a line and I'll see what I can do.

The MIT License

Copyright (c) 2014 Dan Racanelli

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.