@vtfk/azure-queue-add-message
v1.0.0
Published
[![Build Status](https://travis-ci.com/vtfk/azure-queue-add-message.svg?branch=master)](https://travis-ci.com/telemarks/azure-queue-add-message) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://
Downloads
1
Keywords
Readme
azure-queue-add-message
Convenience wrapper for adding json messages to Azure service bus queues or topics.
Usage
(async () => {
const azureQueue = require('azure-queue-add-message')({
connectionString: '<myConnectionString>',
queueName: 'myQueueName', // queueName or topicName is required
topicName: 'myTopicName' // queueName or topicName is required
})
const message = {
id: 123,
action: 'add',
content: 'Added to queue'
}
try {
const result = await azureQueue(message)
console.log(result)
} catch (error) {
console.error(error)
}
})()