clear-path
Advanced tools
Comparing version 1.1.0-beta.0 to 1.1.0
{ | ||
"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"); | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
4686
1
54