lambda-ch
This is what the AWS SDK should had, there is no point on manually creating JSON object to pass through the callback when you can use a library that will ensure that you know what are using (it has JSDoc) and is battle-tested.
Install
Just run:
npm install --save lambdaw
And you could require it in those ways:
const R = const ApiGateway =
HTTP: API Gateway
You could use this helpers to handle HTTP Responses:
const R = moduleexports { const response = }
Isn't it beautiful?
Lex
You could use to create the responses for your own bots:
const L = moduleexports { const response = event }
Developers
Planning to help with a feature? Fork and start a PR, just make sure to follow the common styleguides (use prettier, write on fluent API, write tests)....
You could run tests/generate coverage with:
npm t
And generate documentation with:
npm run doc