Socket
Socket
Sign inDemoInstall

@lambda-middleware/utils

Package Overview
Dependencies
2
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @lambda-middleware/utils

Utilities for use with AWS lambda middleware


Version published
Maintainers
1
Install size
239 kB
Created

Readme

Source

@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.

Keywords

FAQs

Last updated on 12 Mar 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc