Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

alexa-lambda-skill

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alexa-lambda-skill

Create Alexa Skills for AWS Lambda, easily.

  • 2.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
24
increased by118.18%
Maintainers
1
Weekly downloads
 
Created
Source

alexa-lambda-skill

Build Status NPM Version License

Easily create Alexa Skills to run on AWS Lambda using ES6 classes, promises, and ES7 decorators.

Example

import { Skill, Response, Intent, Launch } from 'alexa-lambda-skill';

@Skill
export default class Echo {

  @Launch
  launch() {
    return Response.ask('Welcome to the example Echo skill! What would you like me to repeat?');
  }

  @Intent('echo')
  echo({ sentence }) {
    return Response.say(sentence).card('Echo', sentence);
  }

  @Intent('AMAZON.HelpIntent')
  help() {
    return Response.ask('I repeat whatever you say to me! What would you like me to repeat?');
  }
  
  @Intent('AMAZON.CancelIntent', 'AMAZON.StopIntent')
  stop() {
    return Response.say('Goodbye');
  }

  @Intent('Credits')
  credits() {
    const url = 'https://raw.githubusercontent.com/cameronhunter/alexa-lambda-skill/master/package.json';
    return fetch(url).then(response => response.json()).then(({ name, author }) => {
      return Response.say(`${name} was created by ${author.name}`).card(name, `Credits: ${author.name} <${author.email}> (${author.url})`);
    });
  }

}

Keywords

FAQs

Package last updated on 20 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc