serious plugin management for your app
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.
example
lib
.gitignore
package.json
readme.md

readme.md

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"]
    }
  }
}