Gathering detailed insights and metrics for broccoli-merge-trees
Gathering detailed insights and metrics for broccoli-merge-trees
Gathering detailed insights and metrics for broccoli-merge-trees
Gathering detailed insights and metrics for broccoli-merge-trees
@types/broccoli-merge-trees
TypeScript definitions for broccoli-merge-trees
jbe-broccoli-merge-trees-patched
Experimental win10 patch
broccoli-descriptive-merge-trees
broccoli-merge-trees, but with descriptions placed directly on the tree
broccoli-importer
A simple tool for exporting assets defined in modules as merge-able trees.
Broccoli plugin to merge multiple trees into one
npm install broccoli-merge-trees
Typescript
Module System
Min. Node Version
Node Version
NPM Version
90.6
Supply Chain
94.3
Quality
77.3
Maintenance
100
Vulnerability
98.2
License
JavaScript (100%)
Total Downloads
223,495,998
Last Day
47,252
Last Week
787,149
Last Month
3,541,516
Last Year
34,061,976
MIT License
27 Stars
174 Commits
35 Forks
9 Watchers
18 Branches
10 Contributors
Updated on Aug 23, 2022
Minified
Minified + Gzipped
Latest Version
4.2.0
Package Id
broccoli-merge-trees@4.2.0
Size
3.47 kB
NPM Version
6.13.4
Node Version
12.16.1
Published on
Mar 30, 2020
Cumulative downloads
Total Downloads
Last Day
-22.5%
47,252
Compared to previous day
Last Week
-14.3%
787,149
Compared to previous week
Last Month
6.3%
3,541,516
Compared to previous month
Last Year
-2.4%
34,061,976
Compared to previous year
2
5
Copy multiple trees of files on top of each other, resulting in a single merged tree.
1npm install --save-dev broccoli-merge-trees
function call
1const broccoliMergeTrees = require('broccoli-merge-trees'); 2 3let mergedNode = broccoliMergeTrees(inputNodes, options);
new
1const { MergeTrees } = require('broccoli-merge-trees'); 2 3let mergedNode = new MergeTrees(inputNodes, options);
inputNodes
: An array of nodes, whose contents will be merged
options
: A hash of options
overwrite
: By default, broccoli-merge-trees throws an error when a file
exists in multiple nodes. If you pass { overwrite: true }
, the output
will contain the version of the file as it exists in the last input
node that contains it.
annotation
: A note to help tell multiple plugin instances apart.
destDir
: A string representing the destination path that merged files will be copied to.
If this is your Brocfile.js
:
1const mergeTrees = require('broccoli-merge-trees'); 2 3module.exports = function() { 4 return mergeTrees(['public','scripts']); 5};
And your project contains these files:
.
├─ public
│ ├─ index.html
│ └─ images
│ └─ logo.png
├─ scripts
│ └─ app.js
├─ Brocfile.js
…
Then running broccoli build the-output
will generate this folder:
the-output
├─ app.js
├─ index.html
└─ images
└─ logo.png
The parent folders, public
and scripts
in this case, are not included in the output. The output tree contains only the files within each folder, all mixed together.
If this is your Brocfile.js
:
1var BroccoliMergeTrees = require('broccoli-merge-trees'); 2 3module.exports = new BroccoliMergeTrees(['public', 'scripts'], { 4 destDir: 'assets' 5});
Then running broccoli build the-output
will generate this folder:
the-output
└─ assets
├─ app.js
├─ index.html
└─ images
└─ logo.png
Clone this repo and run the tests like so:
npm install
npm test
Issues and pull requests are welcome. If you change code, be sure to re-run
npm test
. Oftentimes it's useful to add or update tests as well.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
Found 5/15 approved changesets -- score normalized to 3
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
40 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More