activated plugins-list


  • Plugin & Theme Dev

    As plugin I'd like to be able to either get a list of activated plugins (maybe also version) or to send a request whether there is an activated plugin of given name (If you're aware of security issues 😛 )

    My use-case: I'd like to show a warning when my plugin has a known conflict with another activated plugin (emoji-extended vs. emoji as example).

    Maybe it's also nice to be able to get this list client-side as user therefor I may setup a new NodeBB instance like another board I know without having to ask the admin for the plugin-names.
    This would also be helpful for solving issues on external boards and I don't think it's a problem to security.

    Last related point: If I want to setup a new NodeBB instance that uses the same plugins like another one, here it could be helpful to generate a bash command to clone the plugin-installations and activations (shown within ACP).


  • Admin

    @frissdiegurke said:

    Last related point: If I want to setup a new NodeBB instance that uses the same plugins like another one, here it could be helpful to generate a bash command to clone the plugin-installations and activations (shown within ACP).

    As a workaround, you could always use rsync -avz to sync one node_modules/ folder with another 😄


  • Admin

    @frissdiegurke said:

    As plugin I'd like to be able to either get a list of activated plugins (maybe also version) or to send a request whether there is an activated plugin of given name (If you're aware of security issues 😛 )

    I think you can call Plugins.isActive to see if a specific plugin is activated. Otherwise you can query db.getSetMembers('plugins:active', callback) for the actual list


 

Suggested Topics


Star

Looks like your connection to NodeBB was lost, please wait while we try to reconnect.