# bulltrader-rabbitmq

> Upgraded RabbitMQ integration for BullTrader

Latest version **1.2.1** (published 2026-10-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install bulltrader-rabbitmq
pnpm add bulltrader-rabbitmq
yarn add bulltrader-rabbitmq
bun add bulltrader-rabbitmq
```

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; recently updated; high maintenance score.

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

## Facts

| | |
|---|---|
| Version | 1.2.1 |
| Published | 2026-10-10 |
| First published | 2023-11-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=18.0.0 |
| Dependencies | 13 |
| Unpacked size | 82.5 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | irantesla |

## Links

- npm: https://www.npmjs.com/package/bulltrader-rabbitmq
- npm.io page: https://npm.io/package/bulltrader-rabbitmq

## Dependencies (13)

- [rxjs](https://npm.io/package/rxjs.md) ^7.8.1
- [uuid](https://npm.io/package/uuid.md) ^10.0.0
- [tslib](https://npm.io/package/tslib.md) ^2.6.2
- [dotenv](https://npm.io/package/dotenv.md) ^17.2.3
- [amqp-ts](https://npm.io/package/amqp-ts.md) ^1.8.0
- [amqplib](https://npm.io/package/amqplib.md) ^2.2.0
- [verdaccio](https://npm.io/package/verdaccio.md) ^5.32.0
- [@nestjs/common](https://npm.io/package/@nestjs/common.md) ^11.0.8
- [class-validator](https://npm.io/package/class-validator.md) ^0.14.1
- [@types/superagent](https://npm.io/package/@types/superagent.md) ^8.1.9
- [class-transformer](https://npm.io/package/class-transformer.md) ^0.5.1
- [socks-proxy-agent](https://npm.io/package/socks-proxy-agent.md) ^8.0.5
- [@appland/appmap-agent-js](https://npm.io/package/@appland/appmap-agent-js.md) ^14.2.0

## Recent versions

- 1.2.1 (latest) — 2026-10-10
- 1.2.0 — 2026-07-12
- 1.1.4 — 2025-05-07
- 1.1.3 — 2025-05-07
- 1.1.2 — 2025-03-06
- 1.1.1 — 2025-03-06
- 1.1.0 — 2025-02-08
- 1.0.12 — 2025-02-08
- 1.0.11 — 2025-02-06
- 1.0.10 — 2025-02-06
- 1.0.9 — 2025-02-06
- 1.0.8 — 2025-02-06
- 1.0.7 — 2025-01-20
- 1.0.6 — 2024-12-15
- 1.0.5 — 2024-12-15
- … 5 more at https://npm.io/package/bulltrader-rabbitmq/versions

## README

# RabbitMQ Message Broker

This is a lightweight RabbitMQ library for Node.js that simplifies the process of interacting with RabbitMQ. It provides a simple interface for sending and receiving messages from RabbitMQ exchanges and queues.

## Installation

To install the RabbitMQ Light Library, use npm:

```sh
npm install rabbitmq-message-broker
```

## Usage

### Sending Messages
```javascript
// Import the RabbitMQ class
const { Rabbitmq, ExchangeDto, RouteDto } = require('rabbitmq-light-library');

// Create a new Rabbitmq instance
const rabbitmq = new Rabbitmq();

// Connect to the RabbitMQ server
await rabbitmq.connect();

// List of existing channels
let channels = await rabbitmq.getChannels();

// Get a specific channel
let channelName = await rabbitmq.getChannel('src', 'dst');

// List of existing Exchanges in the taken channel
let exchanges = await rabbitmq.getExchanges(channelName);

// List of existing Routes in the taken channel
let routes = await rabbitmq.getRoutes(channelName);

// Send a message
await rabbitmq.sendMessage('channelName', 'exchangeName', 'routeName', { your: 'data' });

// Receive a message
await rabbitmq.receiveMessage('channelName', 'routeName', (message) => {
console.log('Received message:', message);
// Add your message handling logic here
});

// Disconnect from the RabbitMQ server
await rabbitmq.disconnect();

```

## Features
* Easy connection management with the RabbitMQ server
* Send and receive messages from RabbitMQ exchanges and queues
* Efficient handling of exchanges and routes
* Lightweight and easy-to-use interface for RabbitMQ interactions

## Contributing
Contributions are welcome! If you have any suggestions, bug fixes, or new features to add, please feel free to open an issue or submit a pull request.

## License
This project is licensed under the MIT License - see the LICENSE file for details.

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