JSPM

  • Created
  • Published
  • Downloads 51
  • Score
    100M100P100Q64755F
  • License MIT

A fsm (state machine) framework for Alexa apps using Node.js

Package Exports

  • voxa

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (voxa) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Voxa

Build Status Coverage Status Documentation npm

A fsm (state machine) framework for Alexa apps using Node.js

Installation

Install from npm

npm install --save voxa

Usage

const Voxa = require('voxa');

// Controllers use views to send responses to the user
const views = {
  LaunchIntent: { tell: 'Hello World!' },
}

// initialize the skill
const skill = new Voxa({ views })

// respond to a LaunchIntent
skill.onIntent('LaunchIntent', (event) => {
  return { reply: 'LaunchIntent' };
});

// lambda handler
exports.handler = skill.lambda();

Tests

An extensive test suite with more than 90% code coverage

npm run test

JS Code linting

npm run lint

Resources