Dubnium
v2
v2
  • Install
  • Overview
  • Initialize
  • Manage
  • Get
  • Modify
  • Templates
  • CLI
  • Events
  • Plugins
    • Create
  • Miscellaneous
  • Update Log
  • Need more help?
Powered by GitBook
On this page

Was this helpful?

  1. Plugins

Create

If you want to create a Plugin to publish on NPM, copy the code below and put the source in the exported method.

Write your plugins in Commonjs to allow either Commonjs or ESM support!

module.exports = (database, record) => {
// database & record can be null, depending on how the user calls the plugin. Be sure to be able to handle that!
// Plugin source here
}
PreviousPluginsNextMiscellaneous

Last updated 2 years ago

Was this helpful?