Socket
Socket
Sign inDemoInstall

clear-path

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clear-path - npm Package Compare versions

Comparing version 1.1.0-beta.0 to 1.1.0

2

package.json
{
"name": "clear-path",
"version": "1.1.0-beta.0",
"version": "1.1.0",
"description": "A node library for deleteing a path if exists using del",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -12,4 +12,19 @@ # clear-path

## How
```json
# package.json
{
"scripts": {
"clean": "clear-path"
},
"clearpath": "dist"
}
```
The `clearpath` value can a string, or an array of strings of glob patterns.
## Configuration
You must add a configuration either within `package.json`, or creating a `.clearpathrc`
#### Using `package.json`

@@ -19,3 +34,6 @@

{
"clearpath": "build/",
"clearpath": [
"dist/*.png",
"dist/*.jpg"
],
}

@@ -37,3 +55,3 @@ ```

clearPath("./dist");
clearPath("dist");
```
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