node package manager

reflektor

reflektor

Hapi plugin for logging stdout/stderr to browser console

Build Status

NPM

Require in Hapi

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

Usage

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.

Example