Skip to main content

Plugins

Plugins

You can extend the functionality of your license generator by supporting plugins. Plugins allow you to add custom logic, prompts, or license templates without modifying the core generator script.

How Plugins Work:

  • A plugin is typically a separate script or module that exports additional license types, prompts, or processing steps.
  • The main generator script can dynamically load plugins from a plugins/ directory or a specified location.
  • Plugins can be used to support organization-specific licenses, additional user prompts, or integration with other APIs.

How to Add a Plugin:

  1. Create a new file and directory (e.g., plugins/myCustomLicense.js).
  2. Export your custom license logic, template, or prompt as required by your generator's plugin interface.
  3. Update your main generator script to detect and load plugins at runtime.

Benefits:

  • Keeps the core generator simple and maintainable.
  • Allows users to share and reuse custom license logic.
  • Makes it easy to add new features without changing the main codebase.

Note: Plugin support is not officially available at this time. While we are actively working to make official plugin support a future feature of LI-CEN-SE, developers are welcome to create their own plugins. However, please make it clear that any such plugins are UNOFFICIAL.