webcheck-plugin-group

1.0.0 • Public • Published

webcheck-plugin-group

Manage groups of webcheck plugins.

How to install

npm install --save webcheck-plugin-group

How to use

var Webcheck = require('webcheck');
var PluginGroup = require('webcheck-plugin-group');

var AnyPlugin = require('webcheck-any-plugin');

var firstPlugin = new AnyPlugin();
var secondPlugin = new AnyPlugin();
var thirdPlugin = new AnyPlugin();

var group = PluginGroup({
    plugins: [secondPlugin]
});

group.plugins.push(thirdPlugin);
group.plugins.unshift(firstPlugin);

var webcheck = new Webcheck();
webcheck.addPlugin(group);  // Register all plugins in group

group.enable();             // Enable all plugins in group in correct order

// group.disable();         // Disable all plugins in group

Options

  • plugins: Array of plugins.

Package Sidebar

Install

npm i webcheck-plugin-group

Weekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

26.6 kB

Total Files

16

Last publish

Collaborators

  • atd