origami-plugin

0.3.4 • Public • Published

Origami plugin

Purpose

Provide generic methods around a plugin implementation for describing it and invoking its dynamically.

Usage

function MyPlugin() {
}
 
MyPlugin.prototype.echo = function (what) {
  return Promise.resolve(what);
}
 
var Plugin = require('origami-plugin');
 
var plugin1 = new Plugin(MyPlugin);

Readme

Keywords

none

Package Sidebar

Install

npm i origami-plugin

Weekly Downloads

0

Version

0.3.4

License

ISC

Last publish

Collaborators

  • eazel7