JSPM

  • Created
  • Published
  • Downloads 51512
  • Score
    100M100P100Q121575F
  • License MIT

AOP Framework for Modern JavaScript Applications

Package Exports

  • cordis
  • cordis/lib/index.cjs
  • cordis/lib/index.ejs

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cordis) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Cordis

Codecov downloads npm GitHub

AOP Framework for Modern JavaScript Applications.

import { App } from 'cordis'

const app = new App()

app.plugin(plugin)              // use plugins
app.on(event, callback)         // listen to events

app.start()                     // start app

Concepts

App

Context

Contexts provide three kinds of functionality:

  • allowing access to services (service container)
  • managing states of plugins (plugin context)
  • filtering sessions before events (session context)

Plugin

Service

Events