0.0.8 • Published 6 years ago

genie-lambda-toolbelt v0.0.8

Weekly downloads
1
License
ISC
Repository
-
Last release
6 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

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago