clear terminal node js 1

clear terminal node js

process.stdout.write('\x1Bc'); 

Here is what the above code is Doing:
1. We’re importing the ‘os’ module.
2. We’re calling the ‘system’ function from the ‘os’ module.
3. We’re passing the ‘clear’ command to the ‘system’ function.

Similar Posts