Socket
Socket
Sign inDemoInstall

evocatio

Package Overview
Dependencies
1
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    evocatio

[![NPM Version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url]


Version published
Weekly downloads
4
increased by100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 20 May 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc