'A system to find and load plugins from node_modules [closed]

I am trying to create a plugin system with the following workflow:

  1. Publish my plugins to npm.
  2. In another repo, install one or more of these plugins using npm install. They get installed into node_modules.
  3. In a node app, find the plugins installed in the node_modules folder and load them dynamically.
  • How do I go about doing this?
  • Are there any frameworks that provide this functionality off-the-shelf?


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source