Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

amqpuri

nfantone6.6kMIT2.0.1

Create AMQP URIs the node way

amqp, uri, url, rabbitmq, activemq, zmq

readme

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

changelog

Change Log

Unreleased

Full Changelog

Implemented enhancements:

Fixed bugs:

  • Returns wrong uri if hostname starts with "amqp" #31
  • Fix resolved URIs starting with "amqp" #37 (nfantone)

Closed issues:

  • An in-range update of mocha is breaking the build 🚨 #23

Merged pull requests:

1.1.0 (2017-04-26)

Full Changelog

Closed issues:

  • An in-range update of eslint-plugin-standard is breaking the build 🚨 #20
  • An in-range update of eslint-plugin-promise is breaking the build 🚨 #14

Merged pull requests:

1.0.3 (2016-10-16)

Full Changelog

Merged pull requests:

1.0.2 (2016-04-22)

Full Changelog

1.0.1 (2016-04-22)

Full Changelog

1.0.0 (2016-04-22)

* This Change Log was automatically generated by github_changelog_generator