brenden / node-webshot

Easy website screenshots in Node.js
2.12k stars 285 forks source link

Makes onConsoleMessage() work #182

Closed walaura closed 6 years ago

walaura commented 7 years ago

It also adds an extra options.exportConsoleOutput option that will just dump all console output on the terminal

The way console messages are caught is a bit hacky, (first time I dealt with process spawners and their stdout 😢 ), so maybe there's a better way to isolate them.