product-monitor.plugin.sample

1.0.1 • Public • Published

Product Monitor Sample Plugin

A sample plugin (template) for product-monitor that adds an endpoint to generate a random string of characters.

Development

npm install
npm test

Exposed methods

plugin()

Creates a new instance of the plugin.

var plugin = require('product-monitor.plugin.sample')();

plugin.apply(app)

Applies the plugin to a product-monitor app.

plugin.info()

Returns the name, description, and keywords for the plugin:

{
    name: 'product-monitor.plugin.sample',
    description: 'A sample plugin (template) for product-monitor that adds an endpoint to generate a random string of characters.',
    keywords: [
      'product-monitor',
      'nodejs',
      'plugin',
      'template'
    ]
}

plugin.getConfig()

Returns the config applied to the plugin.

plugin.setConfig(pluginConfig)

Changes the config applied to the plugin.

Change Log

1.0.1

  • Corrected description of plugin.info()

1.0.0

  • Initial release

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i product-monitor.plugin.sample

Weekly Downloads

0

Version

1.0.1

License

ISC

Last publish

Collaborators

  • johnbeech
  • markavian