nodejs console clear command code example Example: clear terminal node js process.stdout.write('\x1Bc');