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

0.0.0 • Public • Published

@lambda-func/s3

This package contains a set of utilities for when working with S3 event handlers.

Usage

import { s3 } from '@lambda-func/s3'

export const handler = s3()(async (event) => {
  // iterates through each event record
  console.log(event.s3.bucket.name)
})

Testing

This package also includes some testing utilities to make input mapping easier.

  • createS3Record() - mock the input event for the middleware stack
  • createS3Event() - mock the raw event

/@lambda-func/s3/

    Package Sidebar

    Install

    npm i @lambda-func/s3

    Weekly Downloads

    0

    Version

    0.0.0

    License

    ISC

    Unpacked Size

    4.8 kB

    Total Files

    8

    Last publish

    Collaborators

    • cgiles95