1.0.0 • Published 5 years ago

webcheck-plugin-group v1.0.0

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

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.
1.0.0

5 years ago

0.1.0

8 years ago

0.0.1

9 years ago