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