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

broccoli-merge-trees

Package Overview
Dependencies
Maintainers
2
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-merge-trees

Broccoli plugin to merge multiple trees into one

  • 1.1.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
280K
decreased by-56.91%
Maintainers
2
Weekly downloads
 
Created

What is broccoli-merge-trees?

The broccoli-merge-trees npm package is used to merge multiple Broccoli trees into a single tree. This is useful in build processes where you need to combine outputs from different sources or plugins into one cohesive output.

What are broccoli-merge-trees's main functionalities?

Basic Merge

This feature allows you to merge two or more trees into a single tree. The code sample demonstrates merging two trees located at 'path/to/tree1' and 'path/to/tree2'.

const mergeTrees = require('broccoli-merge-trees');
const tree1 = 'path/to/tree1';
const tree2 = 'path/to/tree2';
const mergedTree = mergeTrees([tree1, tree2]);

Overwrite Option

This feature allows you to specify whether files in later trees should overwrite files in earlier trees. The code sample demonstrates merging two trees with the overwrite option set to true.

const mergeTrees = require('broccoli-merge-trees');
const tree1 = 'path/to/tree1';
const tree2 = 'path/to/tree2';
const mergedTree = mergeTrees([tree1, tree2], { overwrite: true });

Annotation

This feature allows you to add an annotation to the merged tree for easier debugging and logging. The code sample demonstrates merging two trees with an annotation 'Merged Trees'.

const mergeTrees = require('broccoli-merge-trees');
const tree1 = 'path/to/tree1';
const tree2 = 'path/to/tree2';
const mergedTree = mergeTrees([tree1, tree2], { annotation: 'Merged Trees' });

Other packages similar to broccoli-merge-trees

Keywords

FAQs

Package last updated on 05 Aug 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