Node.Js on windows - How to clear console

前端 未结 19 1555
迷失自我
迷失自我 2020-12-02 08:51

Being totally new into node.js environment and philosophy i would like answers to few questions. I had downloaded the node.js for windows installer and also node package man

19条回答
  •  感动是毒
    2020-12-02 09:20

    I couldn't get any of the above to work. I'm using nodemon for development and found this the easiest way to clear the console:

      console.log("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");
    

    It just scrolls the console several lines so you get a clear screen for subsequent console.log commands.

    Hope it helps someone.

提交回复
热议问题