src/node.js
function formatArgs(args) {
	const {namespace: name, useColors} = this;

	if (useColors) {
		const c = this.color;
		const colorCode = '\u001B[3' + (c < 8 ? c : '8;5;' + c);
		const prefix = `  ${colorCode};1m${name} \u001B[0m`;

		args[0] = prefix + args[0].split('\n').join('\n' + prefix);
		args.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\u001B[0m');
	} else {
		args[0] = getDate() + name + ' ' + args[0];
	}
}
function formatArgs(args) {
	const {namespace: name, useColors} = this;

	if (useColors) {
		const c = this.color;
		const colorCode = '\u001B[3' + (c < 8 ? c : '8;5;' + c);
		const prefix = `  ${colorCode};1m${name} \u001B[0m`;

		args[0] = prefix + args[0].split('\n').join('\n' + prefix);
		args.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\u001B[0m');
	} else {
		args[0] = getDate() + name + ' ' + args[0];
	}
}
function formatArgs ( args ) { const { namespace : name , useColors } = this ; if ( useColors ) { const c = this . color ; const colorCode = '\u001B[3' + ( c < 8 ? c : '8;5;' + c ) ; const prefix = ` ${ colorCode } ${ name } \u001B ` ; args [ 0 ] = prefix + args [ 0 ] . split ( '\n' ) . join ( '\n' + prefix ) ; args . push ( colorCode + 'm+' + module . exports . humanize ( this . diff ) + '\u001B[0m' ) ; } else { args [ 0 ] = getDate ( ) + name + ' ' + args [ 0 ] ; } }
Adds ANSI color escape codes if enabled.

@api public
Adds ANSI color escape codes if enabled .