JSPM

@lambda-middleware/utils

1.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 11590
  • Score
    100M100P100Q126599F
  • License MIT

Utilities for use with AWS lambda middleware

Package Exports

  • @lambda-middleware/utils
  • @lambda-middleware/utils/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@lambda-middleware/utils) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@lambda-middleware/utils

npm version downloads open issues debug build status codecov dependency status devDependency status

A collection of utilities for middleware for AWS lambda functions.

Lambda middleware

These utilities are part of the lambda middleware series. They can be used independently.

Production utils

promisifyHandler

Converts a handler that can either use a callback or return a Promise to a handler that is only Promise based.

PromiseHandler

This type is for a handler function that does not take a callback, but instead returns a promise for the response.

Test utils

createEvent

Creates an APIGatewayEvent for testing. Currently does not implement requestContext.

createContext

Creates an AWS Lambda Context for testing. Currently does not implement done, fail, getRemainingTimeInMillis and succeed.