goliatone / core.io-command-promised

Extend core.io with promised commands

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

core.io Command Promised

This module extends core.io context object with a new method: promisedCommand.

We can dispatch a command event and await the command's resolution:

let response = await context.promisedCommand('api.get', event);

Install

$ npm i -S core.io-command-promised

License

® License 2020 by goliatone

About

Extend core.io with promised commands

License:MIT License


Languages

Language:JavaScript 66.8%Language:Shell 33.2%