# amqpuri

> Create AMQP URIs the node way

Latest version **2.0.1** (published 2018-04-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install amqpuri
pnpm add amqpuri
yarn add amqpuri
bun add amqpuri
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2018-04-26 |
| First published | 2016-04-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | > 6.0.0 |
| Dependencies | 3 |
| Unpacked size | 14.1 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Nicolás Fantone |
| Maintainers | nfantone |
| Keywords | amqp, uri, url, rabbitmq, activemq, zmq |

## Links

- npm: https://www.npmjs.com/package/amqpuri
- Repository: https://github.com/nfantone/amqp-uri
- Homepage: https://github.com/nfantone/amqp-uri#readme
- Issues: https://github.com/nfantone/amqp-uri/issues
- npm.io page: https://npm.io/package/amqpuri

## Dependencies (3)

- [lodash.pick](https://npm.io/package/lodash.pick.md) ^4.4.0
- [lodash.curry](https://npm.io/package/lodash.curry.md) ^4.1.1
- [lodash.flowright](https://npm.io/package/lodash.flowright.md) ^3.5.0

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 2.0.1 (latest) — 2018-04-26
- 2.0.0 — 2018-04-26
- 1.1.0 — 2017-04-26
- 1.0.3 — 2016-10-16
- 1.0.2 — 2016-04-22
- 1.0.1 — 2016-04-22

## README

# amqpuri

[![Greenkeeper badge](https://badges.greenkeeper.io/nfantone/amqp-uri.svg)](https://greenkeeper.io/)
[![Build Status](https://travis-ci.org/nfantone/amqp-uri.svg?branch=develop)](https://travis-ci.org/nfantone/amqp-uri) [![codecov.io](https://codecov.io/github/nfantone/amqp-uri/coverage.svg?branch=develop)](https://codecov.io/github/nfantone/amqp-uri?branch=develop) [![js-semistandard-style](https://img.shields.io/badge/code%20style-semistandard-brightgreen.svg?style=flat-square)](https://github.com/Flet/semistandard) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier) [![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/nfantone/amqp-uri/blob/master/LICENSE)

Create [AMQP URIs][3] as you would with [node's url][1]

## Install
```sh
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][2]

## Usage
```js
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.

```sh
git clone https://github.com/nfantone/amqp-uri.git amqpuri
cd amqpuri
npm i
npm test
```

## License
MIT

[1]: https://nodejs.org/api/url.html
[2]: https://www.npmjs.com/package/amqp-uri
[3]: https://www.rabbitmq.com/uri-spec.html

---
_Source: https://npm.io/package/amqpuri · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
