index.js
function logAll(files, cb) {
    _walkAll(files, function(err, node) {
        if (err) {
            exports.log(err.name + ': ' + err.message + ' in ' + err.file + ':' + err.line + ':' + err.column);
            if (cb) cb(err);
        }

        exports.log('Found console.' + node.type + ' at ' + node.file + ':' + node.line + ':' + node.column + ' with '
                    + node.arguments.length + ' arg(s)');
    }).then(function(allNodes) {
        if (cb) cb(null, allNodes);
    });
}
function logAll(files, cb) {
    _walkAll(files, function(err, node) {
        if (err) {
            exports.log(err.name + ': ' + err.message + ' in ' + err.file + ':' + err.line + ':' + err.column);
            if (cb) cb(err);
        }

        exports.log('Found console.' + node.type + ' at ' + node.file + ':' + node.line + ':' + node.column + ' with '
                    + node.arguments.length + ' arg(s)');
    }).then(function(allNodes) {
        if (cb) cb(null, allNodes);
    });
}
function logAll ( files , cb ) { _walkAll ( files , function ( err , node ) { if ( err ) { exports . log ( err . name + ': ' + err . message + ' in ' + err . file + ':' + err . line + ':' + err . column ) ; if ( cb ) cb ( err ) ; } exports . log ( 'Found console.' + node . type + ' at ' + node . file + ':' + node . line + ':' + node . column + ' with ' + node . arguments . length + ' arg(s)' ) ; } ) . then ( function ( allNodes ) { if ( cb ) cb ( null , allNodes ) ; } ) ; }
Logs all found instances of console.log and calls the callback specifying if there were any instances, or an error
if one occurred

@param {String} files A file glob
@param {Function?} cb Called with arguments <Error, Array>. If there was an error it will not be called again,
otherwise it will be called at the end with null as the error value and the array of nodes
found.
Logs all found instances of console . log and calls the callback specifying if there were any instances or an error if one occurred