Skip to content

kukulili-labs/blipp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blipp is a simple hapi plugin to display the routes table to console at startup. It organizes the display per connection so if you have multiple connections you can easily ensure that you've done your routing table correctly. This can be difficult to see otherwise.

image

Usage

var Blipp = require('blipp');
var Hapi = require('hapi');

var server = new Hapi.Server();
server.connection();

server.route({
    method: 'GET',
    path: '/somepath',
    config: {
        auth: 'simple',
        description: 'Description to display',
        handler: function (request, reply) {
        // ..
        }
    }
});

server.register(Blipp, function(err) {
    server.start(function () {
        // ..
    });
});

Usage with authentication information

server.register(
    {
        register: require('blipp'),
        options: {
            showAuth: true
        }
    }, function(err) {
    server.start(function () {
        // ..
    });
});

image

Versions

  • 1.x = hapi 7.x
  • 2.x = hapi 8.x

About

blipp is a simple hapi plugin to display the routes table at startup

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • JavaScript 92.4%
  • Makefile 7.6%