You can add functionality to node's REPL so that you can clear it in the same way your can clear Chrome's JavasSript Developer Console.

If you copy and paste this function into the nodejs console, you can then call clear(); each time you want to clear the screen.

function clear() {
  process.stdout.write('\u001B[2J\u001B[0;0f');
}

If you want a REPL that loads with clear every time, take a quick look at injs.

Thanks to


By AJ ONeal

If you loved this and want more like it, sign up!


Did I make your day?
Buy me a coffeeBuy me a coffee  

(you can learn about the bigger picture I'm working towards on my patreon page )