@redmunroe/aglar
v1.2.4
Published
This module simplifies responding for lambdas so instead of writing an object you can use dot notation and achieve the same outcome.
Readme
Api Gateway Lambda Response (AGLaR)
This module simplifies responding for lambdas so instead of writing an object you can use dot notation and achieve the same outcome.
Install
npm i @RedMunroe/aglarImport
import AGLaR from '@RedMunroe/aglar' Usage
const responder = new AGLaR();
return responder.OK().header("some-header", "header-value").JSON({
"user_id": "some-id-here"
}).send()