
Product
Introducing Reports: An Extensible Reporting Framework for Socket Data
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.
npm-dependencies-merge
Advanced tools
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.
$ cd project_directory
$ npm-dependencies-merge < package-base.json > package.json
$ npm install -g npm-dependencies-merge
-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
npm-dependencies-merge will warn you about any potential conflicts of the versions
declared in the multiple package.json files
FAQs
Merges dependencies from multiple package.json files.
We found that npm-dependencies-merge demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.