@lpgroup/feathers-plugins

    1.3.87 • Public • Published

    @lpgroup/feathers-plugins

    npm version Known Vulnerabilities Licence MIT tested with jest codecov

    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

    Install

    npm i @lpgroup/feathers-plugins

    DownloadsWeekly Downloads

    518

    Version

    1.3.87

    License

    MIT

    Unpacked Size

    23 kB

    Total Files

    12

    Last publish

    Collaborators

    • arlukin
    • muscot