npm-install-all

Installs and saves the npm modules that are used in a js file or a project or a folder in package.json. If there doesn't exist a package.json, it creates a new one.

Showing:

Popularity

Downloads/wk

948

GitHub Stars

8

Maintenance

Last Commit

5yrs ago

Contributors

2

Package

Dependencies

5

Size (min+gzip)

51.6KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

npm-install-all

NPM NPM NPM

NPM

NPM

This module simply recognizes all the require commands and help you to install all the npm modules and also save it in your package.json. This is a pretty cool module which reduces the work of repetitive installation of npm modules which are not present in your package.json to run an application. If there exists a package.json, it saves it as dependencies inside it, else creates it.

You just need to run this module from the project directory. This module recursively checks all the folders (excluding node_modules folder) and files of the project or folder where you are running this command and install the npm packages that you are using in your project, and finally saves it into package.json.

Installation

$ npm install npm-install-all -g

Usage 1 (For a specific file)

$ npm-install-all <filename>

Example

$ npm-install-all test.js

Usage 2 (For a complete project or folder)

$ npm-install-all

For example if you want to install all the dependent npm modules for the "demo-project" (currently residing in example folder)

Just go inside the demo-project folder and simply run this command below

$ npm-install-all

You will see all the node modules installed locally and a 'package.json' being created with all the node modules saved in 'dependencies' property.

Screenshots

Output in the console (For a specific js file)

Output in the console (For a complete project or folder)

node_modules folder

package.json


Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial