ES Extensions API
Provides an extension API for es5+ applications based on Jenkins JEP-204
Installation
npm i -S @imeredith/es-extensions-api
Usage example
Extensions are just functions that take some context as a parameter, and do something. It is totally up to the application that wants to use extensions implemented by plugins to define the contract for the plugins to implement.
Example extension
- Extension Point identifier - 'example.ext'
- Extension Context
- container - Html Div element to render into.
- name - Name to render
Example Extesnion Impl
; ExtensionStore
Example Extension Usage
; const container = document; const extension = ExtensionStore0ifextension
Development setup
npm i
Release History
- 0.0.3
- Work in progress
Meta
Distributed under the MIT license. See LICENSE
for more information.