1.0.1 • Published 4 years ago

lambda-source v1.0.1

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

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
}
1.0.1

4 years ago

1.0.0

4 years ago