https://github.com/raineorshine/updatehammer
Forcefully update all dependencies to latest versions and save to package.json
https://github.com/raineorshine/updatehammer
Last synced: 2 months ago
JSON representation
Forcefully update all dependencies to latest versions and save to package.json
- Host: GitHub
- URL: https://github.com/raineorshine/updatehammer
- Owner: raineorshine
- Created: 2014-03-09T02:38:42.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-12-12T16:15:52.000Z (over 10 years ago)
- Last Synced: 2025-04-11T03:52:24.047Z (2 months ago)
- Language: CoffeeScript
- Homepage:
- Size: 206 KB
- Stars: 21
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DEPRECATED: Please use [npm-check-updates](https://github.com/tjunnone/npm-check-updates)
I am now a collaborator on npm-check-updates, which has been updated to include all of updatehammer's functionality.
---
Forcefully update all dependencies to latest versions and save to package.json
## Install
$ npm install -g updatehammer
## Usage
$ updatehammer
### Example
Start with some out-of-date packages:
{
"dependencies": {
"ansi-styles": "^0.1.2",
"moment": "^1.7.2"
}
}Package Current Wanted Latest Location
ansi-styles 0.1.2 0.1.2 1.0.0 ansi-styles
moment 1.7.2 1.7.2 2.5.1 momentRun the updatehammer:
$ updatehammer
npm install ansi-styles@latest --save
[email protected] node_modules/ansi-stylesnpm install moment@latest --save
[email protected] node_modules/momentSuccessfully installed ansi-styles, moment
Now all our dependencies are at the latest:
{
"dependencies": {
"ansi-styles": "^1.0.0",
"moment": "^2.5.1"
}
}### Advanced Usage
Only update packages whose name matches the given regular expression
$ updatehammer -n ^gulp-
Only update packages whose version matches the given regular expression
$ updatehammer -r ^[~^]