A wrapper to turn getconfig into a hapi plugin
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.jshintignore
.jshintrc
README.md
index.js
package.json

README.md

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

##Usage

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