RabbitMQ via HTTP API in Node.js
npm install httpmq --save
# yarn add httpmq
const {createClient} = require('httpmq')
const uri = 'http://localhost:15672/vhost?prefixQueue=prefix'
const client = createClient(uri)
// Get list connections
const connections = await client.listConnections()
// Get list queues
const queues = await client.listQueues()
// Get sepecific queue
const queue = await client.getQueue('queueName')
// Send to queue
await client.sendToQueue('queueName', body, {ttl: 7200_000})
MIT