evocatio
[![NPM Version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url]
Last updated a year ago by zf .
MIT · Repository · Bugs · Original npm · Tarball
$ cnpm install evocatio 
SYNC missed versions from official npm registry.

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
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
  • co ^4.6.0
Dev Dependencies (5)
Dependents (2)

Copyright 2014 - 2017 © taobao.org |