exports.print = function()

in src/apputil.js [50:67]


exports.print = function () {
    let newArgs = Array.prototype.slice.call(arguments);
    // Prefix any prints() to distinguish them from command output.
    if (newArgs.length > 1 || newArgs[0]) {
        let curDir = path.relative(baseWorkingDir, process.cwd());
        curDir = curDir ? curDir + '/' : './';
        let banner = ' =';
        const PREFIX_LEN = exports.prefixLength;
        if (curDir.length < PREFIX_LEN) {
            banner += new Array(PREFIX_LEN - curDir.length + 1).join('=');
        }
        const prefix = styleText(['magenta', 'bold'], curDir) + styleText(['yellow'], banner);
        newArgs.unshift(prefix);
        newArgs = newArgs.map(function (val) { return val.replace(/\n/g, '\n' + prefix + ' '); });
    }

    console.log.apply(console, newArgs);
};