0.1.1 • Published 2 years ago

@dashibase/plugin-client v0.1.1

Weekly downloads
-
License
GPL-3.0
Repository
-
Last release
2 years ago

@dashibase/plugin-client

Package for developing custom Dashibase plugins.

Usage

First install the library with

npm install @dashibase/plugin-client

Then import the package in your plugin and initialize the client.

import PluginClient from '@dashibase/plugin-client'

const client = new PluginClient()

client.onSetup((data) => {
  // Prints a log when a SETUP message is received  
  console.log(`Received SETUP message ${JSON.stringify(data)}`)
})

// Inform Dashibase that plugin is ready to be setup
client.init()

For more documentation, refer to https://dashibase.com/docs