0.1.4 • Published 6 years ago
@regis24/aws-lambda-nodejs-response v0.1.4
npm package of @regis24/aws-lambda-nodejs-response
A simple package to unify the response of AWS lambdas ...
Installation
Install with npm
$ npm i @regis24/aws-lambda-nodejs-response --save
Usage
Just require
the package and use one of the implemented calls (sendInvokeResponse
, sendApiResponse
)
const Response = require('@regis24/aws-lambda-nodejs-response');
... and then call via ...
Response.sendInvokeResponse(context, callback, 200, contenObject);
... or ...
Response.sendApiResponse(context, callback, 200, contenObject);
License
Licensed under MIT