A wrapper for getconfig to be used as a hapi plugin

npm install hapiconfig
4 downloads in the last month

hapiconfig is a very small wrapper to facilitate use of getconfig in hapi.


var Hapi = require('hapi');
var pack = new Hapi.Pack();
pack.require('hapiconfig', function (err) {
  if (err) console.log('hapiconfig failed to load:', err);

console.log(pack.app.config); // the return from getconfig will be here
npm loves you