npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

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

install

npm i alexa-ability-async-handler

Downloadsweekly downloads

1

version

0.2.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability