Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (24 sloc) 599 Bytes

Pluggable

Options

fetch(pluginPath) - custom way to resolve where plugins should be, this will not include resolution of directories:plugins

Config

directories:plugins - location to search for when finding plugins, defaults to cwd plugins - list of plugins in various formats mapping a name to optional options for broadway's attach

Example

Usage

app.use(require('pluggable'))

Config

{
  "directories": {
    "plugins": "#ROOT/plugins"
  },
  "plugins": {
    "communications-whitelist": {
      "addresses": ["127.0.0.1"]
    }
  }
}