clear commands on node.js code example Example: clear the command prompt node console.log('\033[2J');