lambda-source

1.0.1 • Public • Published

Introduction

AWS Lambda functions are great, but many times developers have many triggers on a single lambda function, this package aims to make handling the events from the triggers a lot easier, as well as knowing how to respond when the lambda is done executing

supports >=node@v6.x.x

Getting Started

import LambdaSource from "lambda-source";
exports.handler = (event) =>{
    const source = new LambdaSource(event);
    source.getRecords(); //gets passed in input data from source;
    return source.respond(200); //responds with the correct format depending on the event
}

Readme

Keywords

none

Package Sidebar

Install

npm i lambda-source

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

9.18 kB

Total Files

5

Last publish

Collaborators

  • ml27299