
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
broccoli-merge-json
Advanced tools
Merge multiple json files into one file.
npm install --save-dev broccoli-merge-json
var mergeJSON = require('broccoli-merge-json');
var jsonTree = mergeJSON(sourceTree, {
srcDir: '/languages',
destDir: '/assets/languages'
});
This would create a .json for each sub directory in /languages. Each resulting
json file would contain the json files in the languages directory or any
sub directory.
The following directory structure
├─┬ languages
└─┬ en
├── index.json
├── global.json
├── header.json
├── components.json
└─┬ components
├── modal-dialog.json
└── date-selector.json
would result in the following en.json:
{
// contents of index.json
"global": {
//contents of global.json
},
"header": {
//contents of header.json
},
"components": {
//contents of components.json
"modalDialog": {
//contents of modal-dialog.json
},
"dateSelector": {
//contents of date-select.json
}
}
}
The destDir directory will be created, and all subdirectories of srcDir
will result in a .json file in the destDir.
FAQs
Broccoloi plugin to merge multiple json files into one
We found that broccoli-merge-json 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.