Skip to content

Commit

Permalink
docs: 1.3 update
Browse files Browse the repository at this point in the history
  • Loading branch information
kissxp committed Mar 31, 2022
1 parent 50c1ca6 commit 3ca0056
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 1.3
> **Publishing date:** 2022-03-31
- **Feat:** JS: options.silent
- **Feat:** JS: options.callback

## 1.2
> **Publishing date:** 2021-10-07
Expand Down
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,27 @@ const clearPath = require( "clear-path" );
clearPath("dist");
```

### options
> These options can only be changed when using `clear-path` in JS.
```js
clearPath("dist", {
silent: true,
callback: (files) => {
console.log("Deleted theses files: ", files)
}
})
```

#### options.silent

**Default:** `false`\
If set to true, will not console log deleted files.

#### options.callback

If you declara a function in your `options.callback`, will execute after deleting files.

## Multiple clear-path routines

### Example: package.json
Expand Down
5 changes: 0 additions & 5 deletions backlog.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
# Feats

- Silent CLI param;

# Docs

- Documentar options;
- Documentar callback;

0 comments on commit 3ca0056

Please sign in to comment.