Skip to content

Commit aa0e45a

Browse files
authored
docs: add how to clear the console
Since it's repeatedly asked about. [skip ci]
1 parent 9920e62 commit aa0e45a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

faq.md

+14
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,20 @@ This is being added to as common issues occur on the [issues](http://github.com/
44

55
This is a working document, and if it makes sense, I'll take pull requests to help make it better.
66

7+
# How to clear the console on restart
8+
9+
Rather than being a(nother) feature in nodemon, and as per the [design principles](https://github.com/remy/nodemon#design-principles) you can clear the console using nodemon's existing architecture.
10+
11+
In your `nodemon.json` (or in your `package.json`) you can include the follow event handler to always clear the console when nodemon starts:
12+
13+
```json
14+
{
15+
"events": {
16+
"start": "node -e console.clear()"
17+
}
18+
}
19+
```
20+
721
# nodemon doesn't work with my REPL
822

923
Create an nodemon.json file with the setting:

0 commit comments

Comments
 (0)