amqpuri
Create AMQP URIs as you would with node's url
Install
npm i --save amqpuri
This module does not support node < 6.0.0
. If you need to install this in older versions, consider using amqp-uri
Usage
const amqpuri = require('amqpuri');
const uri = amqpuri.format({
hostname: 'dev.rabbitmq.com',
port: 5672,
vhost: 'seneca',
username: 'guest',
password: 'guest',
frameMax: 1024,
channelMax: 1000,
heartbeat: 500,
locale: 'en_US'
});
console.log(uri);
Test
To run tests, clone the repository, install dependencies and call the appropriate npm
script.
git clone https://github.com/nfantone/amqp-uri.git amqpuri
cd amqpuri
npm i
npm test
License
MIT