ssb-server plugins plugin

May 30, 2019 ยท View on GitHub

Install and manage third-party plugins.

install: source

Install a plugin to ssb-server.

install {nodeModule} [--from path]
install(nodeModule, { from: })

Calls out to npm to install a package into ~/.ssb/node_modules.

  • nodeModule (string): The name of the plugin to install. Uses npm's module package-name rules.
  • from (string): A location to install from (directory path, url, or any location that npm accepts for its install command).

uninstall: source

Uninstall a plugin from ssb-server.

uninstall {nodeModule}
uninstall(nodeModule)

Calls out to npm to uninstall a package into ~/.ssb/node_modules.

  • nodeModule (string): The name of the plugin to uninstall.

enable: async

Update the config to enable a plugin.

enable {nodeModule}
enable(nodeModule, cb)
  • nodeModule (string): The name of the plugin to enable.

disable: async

Update the config to disable a plugin.

disable {nodeModule}
disable(nodeModule, cb)
  • nodeModule (string): The name of the plugin to disable.