Gathering detailed insights and metrics for @driimus/aws-event-factory
Gathering detailed insights and metrics for @driimus/aws-event-factory
AWS Lambda batch processing utilities for TypeScript
npm install @driimus/aws-event-factory
Typescript
Module System
Node Version
NPM Version
@driimus/lambda-batch-processor@0.3.2
Published on 27 Sept 2024
@driimus/aws-event-factory@0.2.3
Published on 27 Sept 2024
@driimus/sqs-permanent-failure-dlq@0.2.1
Published on 29 Aug 2024
@driimus/lambda-batch-processor@0.3.1
Published on 29 Aug 2024
@driimus/aws-event-factory@0.2.2
Published on 07 Aug 2024
@driimus/lambda-batch-processor@0.3.0
Published on 15 Jul 2024
TypeScript (95.37%)
JavaScript (4.63%)
Total Downloads
2,226
Last Day
11
Last Week
17
Last Month
41
Last Year
1,568
141 Commits
3 Watching
6 Branches
1 Contributors
Latest Version
0.2.3
Package Id
@driimus/aws-event-factory@0.2.3
Unpacked Size
42.64 kB
Size
10.29 kB
File Count
55
NPM Version
10.8.2
Node Version
20.17.0
Publised On
27 Sept 2024
Cumulative downloads
Total Downloads
Last day
0%
11
Compared to previous day
Last week
240%
17
Compared to previous week
Last month
-47.4%
41
Compared to previous month
Last year
329.6%
1,568
Compared to previous year
3
Test data factories for different AWS Lambda event sources. Built using fishery.
This package prioritizes structural integrity over veracity. While some of the generated data is truthful, explicit inputs should always be provided for the parts of an event that you really care about.
[!WARNING] This is an ES only package. Before installing, make sure that your project's configuration supports ECMAScript modules.
1pnpm add --save-dev @faker-js/faker fishery @driimus/aws-event-factory
For types to work as expected, @types/aws-lambda
must be installed:
1pnpm add --save-dev @types/aws-lambda 2
Make sure to check out fishery's documentation for a more detailed API Reference of the exposed factories.
1import { 2 dynamodbEventFactory, 3 dynamodbRecordFactory, 4 sqsEventFactory, 5} from '@driimus/aws-event-factory'; 6 7const sqsEvent = sqsEventFactory.build(); // { Records: [...] } 8 9const ddbEvent = dynamodbEventFactory.build({ 10 Records: [ 11 dynamodbRecordFactory.insert().build(), // { eventName: 'INSERT', ...} 12 dynamodbRecordFactory.modify().build(), // { eventName: 'MODIFY', ...} 13 dynamodbRecordFactory.remove().build(), // { eventName: 'REMOVE', ...} 14 ], 15}); // { Records: [...] }
More examples:
No vulnerabilities found.
No security vulnerabilities found.