Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
broccoli-stew
Advanced tools
The broccoli-stew package provides a set of utilities for working with Broccoli.js, a JavaScript build tool. It offers functionalities such as debugging, filtering, and transforming files within a Broccoli build pipeline.
Debugging
The debugging feature allows you to print out the contents of a tree at a specific point in the build pipeline. This is useful for understanding what files are being processed and for troubleshooting issues.
const stew = require('broccoli-stew');
const debugTree = stew.debug(tree, { name: 'my-tree' });
Filtering
The filtering feature allows you to include or exclude files based on a glob pattern. This is useful for processing only specific types of files within a larger set.
const stew = require('broccoli-stew');
const filteredTree = stew.filter(tree, '**/*.js');
Map
The map feature allows you to transform the contents of files within a tree. This is useful for tasks such as replacing text, modifying file contents, or applying other transformations.
const stew = require('broccoli-stew');
const mappedTree = stew.map(tree, (content, relativePath) => {
return content.replace(/foo/g, 'bar');
});
broccoli-funnel is a Broccoli plugin that allows you to filter files in a tree. It is similar to the filtering functionality in broccoli-stew but is more focused and specialized for this purpose.
broccoli-debug is a Broccoli plugin that provides debugging capabilities similar to the debugging feature in broccoli-stew. It allows you to inspect the contents of a tree at various points in the build pipeline.
broccoli-plugin is a base class for creating Broccoli plugins. While it does not provide specific utilities like broccoli-stew, it is a foundational package for building custom Broccoli plugins with various functionalities.
Provides commonly used convenience functions for developing broccoli based build pipelines.
Currently the following methods are available:
env
- Conditionally runs a callback based upon the current environment.mv
- Moves an input tree to a different location.rename
- Renames files in a tree.find
- Match files in a tree.map
- Maps files, allow for simple content mutation.log
- Logs out files in the passed tree.debug
- Writes the passed tree to disk at the root of the project.rm
- Remove files from a tree.afterBuild
- Calls a callback function after the tree is read.npm.main
- Create a tree with Node module's main entryFAQs
foundation of any healthy brocfile
The npm package broccoli-stew receives a total of 151,516 weekly downloads. As such, broccoli-stew popularity was classified as popular.
We found that broccoli-stew demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.