reflektor

Hapi plugin for logging stdout/stderr to browser console

reflektor

Hapi plugin for logging stdout/stderr to browser console

var Hapi = require('hapi');
 
var server = new Hapi.Server();
 
var options = {
    endpoint: '/debug/terminal'
};
 
server.require('reflektor', options, function (err) {
...

Launch a browser and navigate to /debug/terminal under your hapi server. Open the dev tools and view the console. Any writes to the stdout or stderr on the server will be logged to the browser console.