Nucleus Powered Mitochondria

    @lambda-middleware/utils
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.4 • Public • Published

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

    Install

    npm i @lambda-middleware/utils

    DownloadsWeekly Downloads

    4,383

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    12.2 kB

    Total Files

    23

    Last publish

    Collaborators

    • dbartholomae