tools/ScriptUtils.js
function(options) {
		var colors = require('colors');
		if (options.color === 'auto') {
			if (!process.stdout.isTTY) {
				colors.mode = 'none';
			}
		} else if (!ScriptUtils.booleanOption(options.color)) {
			colors.mode = 'none';
		}
	}
function(options) {
		var colors = require('colors');
		if (options.color === 'auto') {
			if (!process.stdout.isTTY) {
				colors.mode = 'none';
			}
		} else if (!ScriptUtils.booleanOption(options.color)) {
			colors.mode = 'none';
		}
	}
function ( options ) { var colors = require ( 'colors' ) ; if ( options . color === 'auto' ) { if ( ! process . stdout . isTTY ) { colors . mode = 'none' ; } } else if ( ! ScriptUtils . booleanOption ( options . color ) ) { colors . mode = 'none' ; } }
Set the color flags, based on an options object.

@param {Object} options
The options object to use for setting the mode of the 'color' package.
@param {string|boolean} options.color
Whether to use color.  Passing 'auto' will enable color only if
stdout is a TTY device.
Set the color flags based on an options object .