Get started - Plugins
Plugins
Using plugins
v.usePlugin()
method.v.usePlugin(MyPlugin, options);
Creating plugins
const Plugin = (v, options) => {
v.myPluginMethod = function(){
// Some awesome code
};
};
module.exports = Plugin;
v.usePlugin()
method.v.usePlugin(MyPlugin, options);
const Plugin = (v, options) => {
v.myPluginMethod = function(){
// Some awesome code
};
};
module.exports = Plugin;