amqp-uri
v2.0.0
Published
creates an AMQP URI from a JS object
Downloads
73
Readme
amqp-uri
creates an AMQP URI from a JS object
info about AMQP URI Specification in here & for URI query parameters in here
PS: because of some Node.js modules changed the name of the query params (amqp.node for example) instead of channel_max
is channelMax
.
Example
var amqpUri = require('amqp-uri');
var conf = {
ssl: false,
host: 'localhost',
port: 5566,
vhost: 'some_vhost',
frameMax: 8192
};
var uri = amqpUri(conf); // amqp://localhost:5566/some_vhost?frameMax=8192