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

serverless-command-line-event-args

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serverless-command-line-event-args

The module is Serverless plugin. You can execute `serverless function run -e '{"aaa":"bbb"}'`

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

serverless

Serverless CommandLine Event Args

Overview

This is a Serverless Framework plugin. Event JSON passes a Lambda function in commandline. Support to Serverless 1.0

Usage

Execute your Lambda function. Add -e '<JSON>' or --event '<JSON>'.

$ serverless invoke -f YourFunction --event '{"foo":"var"}'

it is displayed {"foo":"var"}.

module.exports.handler = function(event, context, cb) {
    console.log(event);
};

Install

Execute npm install in your Serverless project.

$ npm install serverless-command-line-event-args

add the plugin to your serverless.yml file

plugins:
  - serverless-command-line-event-args

Keywords

FAQs

Package last updated on 11 Oct 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