npm-installs

1.0.2 • Public • Published

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

Running npm install on proj1 and proj2 within ~/projects
$ npm-installs proj1 proj2
Starting `npm install` for '/Users/johndoe/projects/proj1'
Starting `npm install` for '/Users/johndoe/projects/proj2'
Completed '/Users/johndoe/projects/proj1'
Completed '/Users/johndoe/projects/proj2'
Completed all

Running npm install on all projects in a given directory recursively

If the specified directory contains a package.json, it will also have npm install called on it.

$ npm-installs projects -r
Starting `npm install` for '/Users/johndoe/projects/proj1'
Starting `npm install` for '/Users/johndoe/projects/proj2'
Completed '/Users/johndoe/projects/proj1'
Completed '/Users/johndoe/projects/proj2'
Completed all

Running npm install on all projects in a given directory including that directory with a depth of 2

Folder structure

~/project-root
    /proj1
    /proj2
        /subproj1
        /subproj2
            /deeplynestedproj

With a depth of 2, /deeplynestedproj will be excluded

$ npm-installs project-root -d 2
Starting `npm install` for '/Users/johndoe/project-root'
Starting `npm install` for '/Users/johndoe/project-root/proj1'
Starting `npm install` for '/Users/johndoe/project-root/proj2'
Starting `npm install` for '/Users/johndoe/project-root/proj2/subproj1'
Starting `npm install` for '/Users/johndoe/project-root/proj2/subproj2'
Completed '/Users/johndoe/project-root'
Completed '/Users/johndoe/project-root/proj1'
Completed '/Users/johndoe/project-root/proj2'
Completed '/Users/johndoe/project-root/proj2/subproj1'
Completed '/Users/johndoe/project-root/proj2/subproj1'
Completed all

Package Sidebar

Install

npm i npm-installs

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

5.82 kB

Total Files

3

Last publish

Collaborators

  • qbolt