tasks/datadriver.js
function(result) {

                    // Write result to file if it was opened
                    if (fd && result.slice(0, 3) !== '[D]' && result.match(/\u001b\[/g) === null) {
                        fs.writeSync(fd, result);
                    }

                    // Prevent the original process.stdout.write from executing if quiet was specified
                    if (options.quiet) {
                        return hooker.preempt();
                    }

                }
function(result) {

                    // Write result to file if it was opened
                    if (fd && result.slice(0, 3) !== '[D]' && result.match(/\u001b\[/g) === null) {
                        fs.writeSync(fd, result);
                    }

                    // Prevent the original process.stdout.write from executing if quiet was specified
                    if (options.quiet) {
                        return hooker.preempt();
                    }

                }
function ( result ) { // Write result to file if it was opened if ( fd && result . slice ( 0 , 3 ) !== '[D]' && result . match ( / \u001b\[ / g ) === null ) { fs . writeSync ( fd , result ) ; } // Prevent the original process.stdout.write from executing if quiet was specified if ( options . quiet ) { return hooker . preempt ( ) ; } }
This gets executed before the original process.stdout.write
This gets executed before the original process . stdout . write