An event-based AWS SQS queue processor library for Node.js (v1.0.0, stable). It provides long polling with customizable options, emits events for message processing lifecycle (start, stop, before_poll, after_poll, message, error), and supports custom message parsing. Differentiators: simple event-driven API, no external dependencies beyond AWS SDK, and automatic long polling. Ideal for lightweight SQS message consumption without full framework overhead.
npm install sqs-queue-processorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a QueueProcessor, attaches message and error event handlers, and starts polling the SQS queue.
In the 'message' event handler, call sqs.deleteMessage({ QueueUrl, ReceiptHandle: msg.ReceiptHandle }).promise()Use onMessageParse: function(msg) { return { ...msg, Body: JSON.parse(msg.Body) }; }npm install aws-sdk@2.x
Run 'npm install sqs-queue-processor' and use require('sqs-queue-processor')Use const QueueProcessor = require('sqs-queue-processor');Provide a valid SQS queue URL: https://sqs.<region>.amazonaws.com/<account-id>/<queue-name>
No dependency data recorded yet.