
Product
A New Overview in our Dashboard
We redesigned Socket's first logged-in page to display rich and insightful visualizations about your repositories protected against supply chain threats.
alexa-lambda-skill
Advanced tools
Easily create Alexa Skills to run on AWS Lambda using ES6 classes and ES7 decorators.
Try it in the online playground or create your own Alexa skill with the Yeoman generator.
import { Skill, Intent, Launch } from 'alexa-lambda-skill';
import { ask, say, card } from 'alexa-response';
import fetch from 'isomorphic-fetch';
@Skill
export default class Echo {
@Launch
launch() {
return ask('Welcome to the example Echo skill! What would you like me to repeat?');
}
@Intent('echo')
echo({ sentence }) {
return say(sentence).card({ title: 'Echo', content: sentence });
}
@Intent('AMAZON.HelpIntent')
help() {
return ask('I repeat whatever you say to me! What would you like me to repeat?');
}
@Intent('AMAZON.CancelIntent', 'AMAZON.StopIntent')
stop() {
return 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 say(`${name} was created by ${author.name}`).card({ title: name, content: `Credits: ${author.name} <${author.email}> (${author.url})`});
});
}
}
FAQs
Create Alexa Skills for AWS Lambda, easily.
The npm package alexa-lambda-skill receives a total of 13 weekly downloads. As such, alexa-lambda-skill popularity was classified as not popular.
We found that alexa-lambda-skill demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
We redesigned Socket's first logged-in page to display rich and insightful visualizations about your repositories protected against supply chain threats.
Product
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.