New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

npm-dependencies-merge

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm-dependencies-merge

Merges dependencies from multiple package.json files.

  • 1.0.5
  • latest
  • Source
  • npm
  • Socket score

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

npm-dependencies-merge

npm-dependencies-merge is a nifty little script that scans subdirectories searching for nested package.json files, and merges all the dependencies together in a single package.json file that is outputted to stdout.

A base template passed through standard input is used to produce the root package.json file. This allows package.json to be ignored by version control systems, which conflict with auto-generated files. Base package attributes, like name and version, can be stored in a separate file such as package-base.json, and kept in version control.

Example

$ cd project_directory
$ npm-dependencies-merge < package-base.json > package.json

Installation

$ npm install -g npm-dependencies-merge

Command line options

-h, --help           output usage information
-V, --version        output the version number
-s, --silent         do not print out warnings
-c, --combine        combine dependencies and devDependencies
-f, --files          files to search for (Default: package.json)
-o, --output [file]  output to a file

Conflicts

npm-dependencies-merge will warn you about any potential conflicts of the versions declared in the multiple package.json files

Keywords

FAQs

Package last updated on 03 Feb 2018

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