core.io-command-promised

Extend core.io with promised commands

Usage no npm install needed!

<script type="module">
  import coreIoCommandPromised from 'https://cdn.skypack.dev/core.io-command-promised';
</script>

README

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