amqp-uri

2.0.0 • Public • Published

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

Package Sidebar

Install

npm i amqp-uri

Weekly Downloads

1

Version

2.0.0

License

ISC

Last publish

Collaborators

  • quim