A simple package to unify the response of AWS lambdas ...
Install with npm
$ npm i @regis24/aws-lambda-nodejs-response --saveJust 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);
Licensed under MIT