amqp-uri

v0.2.0
creates an AMQP URI from a JS object
amqp uri format create object

amqp-uri

creates an AMQP URI from a JS object

Build StatusCode Coverage 100%ISC License

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

Metadata

  • ISC
  • Whatever
  • @joaquimserafim
  • released 1/11/2015

Downloads

Maintainers