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