Appearance
Terminal detection.
tty.isatty()
Check if stdout is connected to a terminal.
if (tty.isatty()) { console.log("Running in a terminal"); } else { console.log("Output is being piped"); }
isatty(STDOUT_FILENO)