Categories
JavaScript Answers

How to clear console on Node.js on windows?

Spread the love

To clear console on Node.js on windows, we call the proces.stdout.write method.

For instance, we write

process.stdout.write('\033c');

to call write with '\033c' to clear the console.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *