@dashibase/plugin-client
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

@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

Package Sidebar

Install

npm i @dashibase/plugin-client

Weekly Downloads

0

Version

0.1.1

License

GPL-3.0

Unpacked Size

49.1 kB

Total Files

5

Last publish

Collaborators

  • greentfrapp