@redmunroe/aglar
TypeScript icon, indicating that this package has built-in type declarations

1.2.4 • Public • Published

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/aglar

Import

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()

Readme

Keywords

none

Package Sidebar

Install

npm i @redmunroe/aglar

Weekly Downloads

2

Version

1.2.4

License

ISC

Unpacked Size

19.2 kB

Total Files

12

Last publish

Collaborators

  • redmunroe