0.0.4 • Published 8 years ago

evocatio v0.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

evocatio

NPM Version Build Status

fns = require("evocatio")();

fns.register("whoami", => "nobody");

fns.register("context", function(){
    return this.id;
});

fns.register("namespace.async", {
    operation: function*(arg, more){
        yield asyncoperation(arg);
    }
});

fns.dispatch("whoami", {});  // "nobody"
fns.dispatch("context", {}, {id: "2"});  // "2"
fns.dispatch("namespace.async.operation", {arg: null, more: false});  // promise
0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago