Socket
Socket
Sign inDemoInstall

amqpuri

Package Overview
Dependencies
3
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    amqpuri

Create AMQP URIs the node way


Version published
Weekly downloads
2.1K
decreased by-21.46%
Maintainers
1
Install size
86.7 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 26 Apr 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc