clear terminal node js
snippet in javascript

clear terminal node js

user2948

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

console.log clear screen

user5441

console.clear()

clear the command prompt node

user3157

console.log('\033[2J');