0.0.8 • Published 5 years ago

genie-lambda-toolbelt v0.0.8

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

Genie Lambda Toolbelt

Set of reusable tools to make writing new Lambda functions a breeze.

Sample Usage

import { compose, httpHandler, withJSONBody } from 'genie-lambda-toolbelt';

const myHelloWorldFunction = async (event: IHTTPEvent, context: IHTTPContext): Promise<object> => {
  const { genie: { body } } = context;
  return {
    message: `Hello, ${body.name}`,
  };
};

export default compose(httpHandler, withJSONBody)(myHelloWorldFunction);
0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago