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

broccoli-stew

Package Overview
Dependencies
Maintainers
6
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-stew

foundation of any healthy brocfile

  • 3.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
160K
decreased by-14.52%
Maintainers
6
Weekly downloads
 
Created

What is broccoli-stew?

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.

What are broccoli-stew's main functionalities?

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');
});

Other packages similar to broccoli-stew

Keywords

FAQs

Package last updated on 20 Jun 2019

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