Socket
Book a DemoInstallSign in
Socket

@lambda-func/s3

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lambda-func/s3

The utils of lambda-func

latest
Source
npmnpm
Version
0.0.0
Version published
Maintainers
1
Created
Source

@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

FAQs

Package last updated on 29 Dec 2021

Did you know?

Socket

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