0.4.0 • Published 9 years ago

plugo v0.4.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

npm Build Status Dependencies Status DevDependencies Status

plugo

Dynamically expose modules to hapi plugins from a given path.

Usage

const Plugo = require('plugo');

exports.register = (plugin, options, next) => {
  var plugoptions = {
    name: 'handlers',
    path: __dirname + '/handlers'
  };
  
  // Exposes modules in the handlers folder to this plugin
  Plugo.expose(plugoptions, plugin, next);
};

exports.register.attributes = {
  name: 'controllers'
};

Options

The following options are available:

  • name: Defines property name under plugin required
  • path: Specifies which folder to load files required
  • extension: Specifies which file extension to look for (defaults to .js) optional
0.4.0

9 years ago

0.3.8

9 years ago

0.3.7

9 years ago

0.3.6

9 years ago

0.3.5

9 years ago

0.3.4

9 years ago

0.3.3

9 years ago

0.3.2

9 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

1.0.1

10 years ago

0.1.0

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago

1.0.0

10 years ago