GithubHelp home page GithubHelp logo

extensioner's People

Contributors

uhlryk avatar

Watchers

 avatar

extensioner's Issues

creating event also accept optional compose function

compose function is responsible for building one response from multiple events listeners.

If multiple modules responds to event and each will return value. Compose function decide if response will be array of single responses or one object built from all single responses

calling events in two steps

  1. create event
const eventCaller = createEventCaller(eventName [, composeFunction])
  1. call event
eventCaller(initValue)

allow to define dependency modules

It will be another property with array list of modules names.
Extensioner will check for each module if he has registered its dependencies mudules. Otherwise it will throw error

three events type

  • list - each extension can only add new response element. It should allow to set priority
  • reduce - one response and each extension can change it
  • find - first extension will give response

implement getPropertiesValues

Accept multiple properties and returns an object where keys are extensions name and value is an object with keys as properties names and values are properties values. Will return only from extensions where all properties are available

add eventResponse object

This object is share between all callbacks triggered by event, and is returned from event emitter.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.