Narnia Produced Magic

    koa-alexa

    0.0.2 • Public • Published

    koa-alexa

    Koa middleware to handle Amazon Alexa requests to a defined skill.

    Installation

    Install the koa-alexa package from NPM:

    npm install --save koa-alexa

    Usage

    To use the middleware, add it to a Koa server as follows:

    const Koa = require('koa');
    const KoaBody = require('koa-body');
    const KoaAlexa = require('koa-alexa');
    let skill = require('./skill'); //Instance of an Alexa.Skill
     
    const app = new Koa();
     
    app.use(KoaBody({ jsonLimit: '10kb'} ));
     
    app.use(KoaAlexa({ skill: skill, validate: true }));
     
    app.listen(3000);

    The skill must be an instance of an Skill class from the Amazon ask-sdk-core package.

    Keywords

    Install

    npm i koa-alexa

    DownloadsWeekly Downloads

    4

    Version

    0.0.2

    License

    MIT

    Unpacked Size

    14.8 kB

    Total Files

    5

    Last publish

    Collaborators

    • chyuibacca