title: How to start a process in node.js that thinks its being run from the commandline
body: <p>I'm running <code>require('child_process').exec('npm install')</code> as a child process in a node.js script, but I want it to retain console colors. I'm running in windows, but want this script to be portable (e.g. to linux). How do I start a process that think's it's being run from the console?</p>
  
  <p>Note: I'd rather not have npm-specific answers, but an answer that allows me to trick any command.</p>