0.0.26 • Published 2 years ago

es-plugins v0.0.26

Weekly downloads
-
License
AGPL-3.0-or-later
Repository
github
Last release
2 years ago

ECMAScript Plugins (ES Plugins)

Npm package version Npm package monthly downloads License: AGPL v3 Discord

ES Plugins is a standard for transforming ES Modules into standardized Web Components to simplify the process of authoring composable web applications.

The es-plugins library uses graphscript to compose plugins—as well as its DOMService class to transform plugins into Web Components.

Note: es-plugins is a core library of the Brains@Play Framework

The Specification

Each Plugin contains one default export and any number of named exports.

export let nExecutions = 0

export default function(){
    this.nExecutions++
    return this.nExecutions
}

As such, this specification treats namespace imports (which access default and named exports) as first-class citizens.

Default Exports

The default export defines the behavior of the Plugin.

Named Exports

named exports define the states of the Plugin.

However, multiple named exports without a default function may also be passed. These are transformed into individual plugins within the same graph.

Acknowledgments

This library is maintained by Garrett Flynn and Joshua Brewster, who use contract work and community contributions through Open Collective to support themselves.

Backers

Support us with a monthly donation and help us continue our activities!

Sponsors

Become a sponsor and get your logo here with a link to your site!

0.0.26

2 years ago

0.0.25

2 years ago

0.0.24

2 years ago

0.0.23

2 years ago

0.0.22

2 years ago

0.0.21

2 years ago

0.0.20

2 years ago

0.0.19

2 years ago

0.0.18

2 years ago

0.0.17

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago