amqpuri
Create AMQP URIs the node way
Last updated 4 years ago by nfantone .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install amqpuri 
SYNC missed versions from official npm registry.

amqpuri

Greenkeeper badge Build Status codecov.io js-semistandard-style code style: prettier MIT License

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);
// amqp://guest:guest@dev.rabbitmq.com:5672/seneca?frameMax=1024&channelMax=1000&heartbeat=500&locale=en_US

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

Current Tags

  • 2.0.1                                ...           latest (2 years ago)

6 Versions

  • 2.0.1                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.3                                ...           4 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 5
Last Day 1
Last Week 0
Last Month 3
Dependencies (2)
Dev Dependencies (15)

Copyright 2014 - 2017 © taobao.org |