appcd-plugin

Library for loading and executing plugins.

Usage no npm install needed!

<script type="module">
  import appcdPlugin from 'https://cdn.skypack.dev/appcd-plugin';
</script>

README

appcd-plugin

A complete plugin system for the Appc Daemon.

Visit https://github.com/appcelerator/appc-daemon for more information.

Report issues to GitHub issues. Official issue tracker in JIRA.

Installation

npm i appcd-plugin

Usage

import PluginManager from 'appcd-plugin';
import Dispatcher from 'appcd-dispatcher';

const pm = new PluginManager();

Dispatcher.register('/plugin', pm);

await Dispatcher.call('/plugin/register', { path: '/path/to/myplugin' });

const ctx = await Dispatcher.call('/myplugin/latest');
console.log(ctx.response);
await pm.shutdown();

Legal

This project is open source under the Apache Public License v2 and is developed by Axway, Inc and the community. Please read the LICENSE file included in this distribution for more information.