A unified abstraction layer for Azure Storage Queue and Azure Service Bus Message queues, allowing developers to switch between queue providers with a single line change. Version 1.3.1 provides a consistent API for create, list, delete queues, and send/receive messages as JSON or plain text. Built on top of @azure/storage-queue and @azure/service-bus SDKs. Active development with monthly releases. Differentiator: no config files or provider-specific code needed – just pass the provider name to the constructor.
npm install azure-abstract-queue-adapterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a queue, sends a JSON message, receives it, and deletes the queue using either Azure Storage Queue or Service Bus based on environment variables.
Use sendMessage(queueName, queueMessage) instead of createPlainMessage.
Set AZURE_STORAGE_CONNECTION_STRING for Storage Queue or AZURE_SERVICEBUS_CONNECTION_STRING for Service Bus.
Wrap in try/catch to handle empty queue scenario.
Use `ensureQueue(queueName, options)` which is idempotent.
Use `import AzureAbstractQueueAdapter from 'azure-abstract-queue-adapter'` (default import) instead of `import { AzureAbstractQueueAdapter } from ...`Add `const AzureAbstractQueueAdapter = require('azure-abstract-queue-adapter');` at the top of your file.Call `await adapter.createQueue(queueName);` or `await adapter.ensureQueue(queueName);` first.