plugo
Dynamically expose modules to hapi plugins from a given path.
Usage
const Plugo = ; exports { var plugoptions = name: 'handlers' path: __dirname + '/handlers' ; // Exposes modules in the handlers folder to this plugin Plugo;}; exportsregisterattributes = 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
]