Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

npm-install-all

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm-install-all

This is a npm module to install all dependent npm packages for a particular file and save it in package.json. If there doesnt exist a package.json, it creates it and saves the dependencies in it. You just need to run this module from the project directory

  • 1.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
299
decreased by-20.05%
Maintainers
1
Weekly downloads
 
Created
Source

npm-install-all

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.

Install

$ 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

Example

$ 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.

Keywords

FAQs

Package last updated on 22 May 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc