Files: 90dfad001a91b412a745a9cad0dccf4a3ef49dc2 / plugins / plugins.md
1136 bytesRaw
ssb-server plugins plugin
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.
Built with git-ssb-web