hummel-hapi

0.6.2 • Public • Published

Hummel Hapi.js Integration

Allows a Hapi Server to be started and configured using hummel logging, settings, and standard configuration parameters.

All log events are intecepted and mapped to the corresponding bunyan log method by tag. (Defaults to debug)

The Hapi debug console logging is disable and piped through bunyan instead.

Install

npm install hummel-hapi --save

Usage

var server = require('hummel-hapi').createServer();

server.route({
    method: 'GET',
    path: '/',
    handler: function(request, reply) {
        reply('Hello World!');
    }
});

server.run();

Versions

0.6.0

hapi: 6.6.0 => 13.0.0
lodash-node: 2.4.1 => 3.10.2

Readme

Keywords

none

Package Sidebar

Install

npm i hummel-hapi

Weekly Downloads

17

Version

0.6.2

License

MIT

Last publish

Collaborators

  • larrymyers
  • incisent-labs