alexa-ability-async-handler

0.2.0 • Public • Published

alexa-ability-async-handler Build Status

A promise based alexa-ability handler

Example

import { Ability, events } from 'alexa-ability';
import { handleAbility, handleEvent } from 'alexa-ability-async-handler';
 
const ability = new Ability();
 
ability.on(events.launch, function(req) {
    req.say("Testing testing one two three.").end();
});
 
handleAbility(ability)(event).then(
    res => console.log(res),
    err => console.error(err)
)

API

handleAbility(app) -> abilityHandler(event) -> promise
handleEvent(app, event) -> promise

/alexa-ability-async-handler/

    Package Sidebar

    Install

    npm i alexa-ability-async-handler

    Weekly Downloads

    2

    Version

    0.2.0

    License

    MIT

    Last publish

    Collaborators

    • nickclaw