UNPKG

npm-update-all

Version:

Update all npm packages in dependencies & devDependecies under package.json at once

47 lines (23 loc) 589 B
# npm-update-all Update all dependencies & devDependencies in package.json at once. *Global* installation is recommended for cli usage. ## Install (cli) ```shell $ npm install npm-update-all -g ``` ## CLI Usage ```shell // Navigate to project root , where package.json is located & run. $ npm-update-all ``` ## Install (project) ```shell $ npm install npm-update-all -D ``` ## Usage ```javascript // In your server.js/index.js , run following code. var updateAll = require('npm-update-all'); var json = require('./package.json'); updateAll(json); ```