UNPKG

applugins

Version:

Simple modular application architecture

46 lines (25 loc) 756 B
# Applugins Simplest modular application architecture. The application singleton is a container for set of plugins. Features: - written in JS6 - easy to learn/use - async init/done for plugins using `async/await` - no extra dependencies Usage ----- import Applugins from 'applugins'; // once at start (Applugins.create(config)).init().then((app)=>{}); let app = Applugins.instance(); app.done().then((app)=>{}); ... class ThePlugin extends Applugins.Plugin {...} See `test/test.js` for more use cases. Repo ---- [https://github.com/alitskevich/applugins] Legal ----- The MIT License (MIT) Copyright (c) 2015 Alex Litskevich