@yehonadav/serverless-event-getters
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

lambdaHttp

http helpers for serverless http requests.

install

npm i @yehonadav/lambdaHttp

usage

import {createHandler, AsyncHandler, httpOkResponse} from "@yehonadav/lambdahttp"

let handler: AsyncHandler = async (event) => {
  // do something
  // ...
  const responseData = {
    dataint: 3,
    dataintlist: [1,2,3],
  };
  
  return httpOkResponse({
    body: responseData,
  });
};

handler = createHandler(handler);

export { handler };

enjoy =)

Package Sidebar

Install

npm i @yehonadav/serverless-event-getters

Weekly Downloads

1

Version

1.0.1

License

Apache-2.0

Unpacked Size

26.4 kB

Total Files

22

Last publish

Collaborators

  • yehonadav