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

grunt-contrib-clean

Package Overview
Dependencies
Maintainers
6
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-contrib-clean

Clean files and folders

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
6
Created

What is grunt-contrib-clean?

The grunt-contrib-clean package is a Grunt plugin used to clean files and directories. It is commonly used to delete files and folders as part of a build process, ensuring that old or unnecessary files do not clutter the project workspace.

What are grunt-contrib-clean's main functionalities?

Clean specific files

This feature allows you to clean specific files. In this example, all JavaScript files in the 'dist' directory will be deleted.

{
  "clean": {
    "build": ["dist/*.js"]
  }
}

Clean specific directories

This feature allows you to clean specific directories. In this example, the entire 'dist' directory will be deleted.

{
  "clean": {
    "build": ["dist/"]
  }
}

Clean multiple paths

This feature allows you to clean multiple paths. In this example, both the 'dist' and 'tmp' directories will be deleted.

{
  "clean": {
    "build": ["dist/", "tmp/"]
  }
}

Force option

This feature allows you to use the 'force' option to delete files outside the current working directory. In this example, the directory at '/path/to/some/dir' will be deleted.

{
  "clean": {
    "options": {
      "force": true
    },
    "build": ["/path/to/some/dir"]
  }
}

Other packages similar to grunt-contrib-clean

Keywords

FAQs

Package last updated on 15 Feb 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