Skip to content

zweifisch/evocatio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published