GithubHelp home page GithubHelp logo

nodejs-subscriptionman2's Introduction

backbone mixin for advanced event subscriptions

collection of mixins to mix a subscription mixin you'd like.

look at tests.coffee for API documentation

the idea is to specialize your subscription system in order to cut down on the execution of unnessesary code while still having great flexibility and fancy matching where you need it

pluggable event matching systems (events can be strings, objects, or anything else)

  • events are anything?

    • SimplestMatcher matching for equality
  • events are strings?

    • SimplestMatcher simple string matching
    • StringMatcher regex matching - todo
  • events are objects?

    • ObjectMatcher checking for key existance or specific key-value pair, support for recursion into the object
    • Validator2Matcher using advanced validator2 object matching features - full boolean logic support, type matching, custom async matchers (db lookups, queries?), random matchers like min/max/length/email/regex etc

advanced subscription functions calling

  • support for parallel async calling
  • return values passed to the event triggering caller
  • waterfall? - todo

todo

support for different event structures, not just [ string_name, some_data ] but tags, only data, and such, and maybe pluggable different matchers for different fields

nodejs-subscriptionman2's People

Contributors

leshy avatar

Watchers

 avatar  avatar  avatar

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.