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