lambda-api-utils

1.0.1 • Public • Published

lambda-api-utils

This library contains utilities for use with the Lambda-Api to create rest endpoints in BFF services.

Middleware

  • Debug Logger
  • Error Handling
  • Serializer
  • CORS
  • forRole
  • forOrganization

JWT

  • getClaims
  • getUsername
  • getUserGroups

Connectors

  • DynamoDB
  • S3

Mapper

A very simple read mapper for the DynamoDB Single Table pattern.

  • Hide internal fields like pk and sk.
  • Create an aggreate json object out of many rows

Encryption

  • encrypt
  • decrypt (integrated with mapper)

Examples

  • see test cases

Related Projects

/lambda-api-utils/

    Package Sidebar

    Install

    npm i lambda-api-utils

    Weekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    24.8 kB

    Total Files

    11

    Last publish

    Collaborators

    • jgilbert01