npm-installs
Description :
npm-installs
is a command-line application that allows you to run npm install
on specified directories concurrently using a single command. It also has support for recursive installs with an optional specified depth.
npm-installs
will automatically exclude all /node_modules
directories.
Installation
npm i -g npm-installs
Usage :
npm-installs <...dirs> [options]
Examples
npm install
on proj1 and proj2 within ~/projects
Running $ npm-installs proj1 proj2Starting `npm install`
npm install
on all projects in a given directory recursively
Running If the specified directory contains a package.json
, it will also have npm install
called on it.
$ npm-installs projects -rStarting `npm install`
npm install
on all projects in a given directory including that directory with a depth
of 2
Running Folder structure
~/project-root
/proj1
/proj2
/subproj1
/subproj2
/deeplynestedproj
With a depth of 2, /deeplynestedproj
will be excluded
$ npm-installs project-root -d 2Starting `npm install`