Socket
Socket
Sign inDemoInstall

serverless-command-line-event-args

Package Overview
Dependencies
1
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

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"}'`


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

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

Last updated on 11 Oct 2016

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc