Socket
Socket
Sign inDemoInstall

broccoli-clean

Package Overview
Dependencies
42
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    broccoli-clean

A broccoli plugin to clean specified directory(es)


Version published
Weekly downloads
4
Maintainers
1
Install size
1.55 MB
Created
Weekly downloads
 

Changelog

Source

0.1.0

First release

Readme

Source

Broccoli Clean

Build Status

Given an input node, the Broccoli Clean plugin clean a specified node. You can specify multiple folders as an array.

Documentation

clean(inputNode, options)

inputNode {Single node | Nodes array}

A Broccoli node (formerly: "tree"). A node in Broccoli can be either a string that references a directory in your project, or array of string of directories, or a node object returned from running another Broccoli plugin.

If your project has the following file structure:

.
├── Brocfile.js
├── dist/
└── temp/

You can select a subsection of the tree via Clean:

const clean = require('broccoli-clean');
const cleanDir = clean('dist');

or

const clean = require('broccoli-clean');
const cleanDirs = clean(['dist', 'temp']);

Export node for Broccoli

module.exports = cleanDir;
Options

annotation {String}

Tests

Running the tests:

npm install
npm test

License

This project a distributed under the MIT license.

Keywords

FAQs

Last updated on 20 May 2020

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc