Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

clearing terminal while Nodemon is running?

Is there any way to clear terminal while nodemon is running? I am using Ubuntu 18.04

like image 537
fuadnafiz98 Avatar asked Mar 19 '26 14:03

fuadnafiz98


2 Answers

Insert the following code into the nodemon.json file.

{
    "events": {
      "start": "clear"
    }
}
like image 124
Sir Alidadi Avatar answered Mar 22 '26 08:03

Sir Alidadi


This is what the nodemon events are for. You can include either a global or local nodemon.json file as per the following to do what you're after.

   {
      "events": {
        "start": "echo -ne '\\ec'"
      }
    }
like image 30
Abdelmalek Bouguerra Avatar answered Mar 22 '26 08:03

Abdelmalek Bouguerra



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!