@soluzioni-futura/sqs-component
v1.0.10
Published
## Quick start Install the package ```sh $ npm i @soluzioni-futura/sqs-component ```
Downloads
15
Keywords
Readme
sqs-component
Quick start
Install the package
$ npm i @soluzioni-futura/sqs-component
Usage
import SqsComponent, { SqsConsumerFactoryComponent } from "@soluzioni-futura/sqs-component"
const { NODE_ENV, SQS_REGION, SQS_LOCAL_ENDPOINT } = process.env
const sqsComponent = new SqsComponent({
env: NODE_ENV!,
region: SQS_REGION!,
localEndpoint: SQS_LOCAL_ENDPOINT!
})
const sqsConsumerFactoryComponent = new SqsConsumerComponent({
sqsComponent,
env: NODE_ENV!
})