JSPM

lambda-event-mock

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 19134
  • Score
    100M100P100Q143251F
  • License BSD-3-Clause

Mocks AWS Lambda events

Package Exports

  • lambda-event-mock

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-event-mock) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Build Status npm version

lambda-event-mock

Mocking library for AWS Lambda events

Features

  • Works with Node 8.x

Installation

Install via npm.

npm install lambda-event-mock --save-dev

Getting Started

const lambdaEventMock = require( 'lambda-event-mock' );

let myMock = lambdaEventMock.s3()
                        .object( 'picture1.gif' )
                        .bucket( 'my-bucket-uploaded-pictures' )
                        .build();

// myMock contains an s3 event object

Feedback

We'd love to get feedback on how you're using lambda-event-mock and things we could add to make this tool better. Feel free to contact us at feedback@vandium.io

License

BSD-3-Clause