@lpgroup/feathers-plugins
v1.9.1
Published
Collection of feathers plugins.
Downloads
833
Readme
@lpgroup/feathers-plugins
Collection of feather plugins
Install
Installation of the npm
npm install @lpgroup/feathers-plugins
Usage
onPluginsReady()
- resolves plugins promises
import { onPluginsReady } from "@lpgroup/feathers-plugins";
onPluginsReady().then(() => {
// action
});
onPluginReady(pluginName)
- resolves a single plugin promise
onPluginReady("mongodb").then((plugin) => {
// action
});
addPluginWithOptions(pluginName, plugin, options)
- initializes a plugin
import { addPluginWithOptions, mongodb, nats, sync, axios } from "@lpgroup/feathers-plugins";
function setupPlugins(app) {
addPluginWithOptions("mongodb", mongodb, { uri: app.get("mongodb") });
addPluginWithOptions("nats", nats, app.get("nats"));
addPluginWithOptions("axios", axios, {});
addPluginWithOptions("sync", sync, { app });
}
app.configure(setupPlugins);
API
xxx
xxx(xxx)
xxx(xxx);
Contribute
See contribute
License
MIT - See licence