# amqp-read

> Read from a queue into a file in a none destructive way

Latest version **1.0.0** (published 2019-08-29) · ISC license · 0 weekly downloads

## Install

```sh
npm install amqp-read
pnpm add amqp-read
yarn add amqp-read
bun add amqp-read
```

Provides the command `amqp-read`.

## 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 | 1.0.0 |
| Published | 2019-08-29 |
| First published | 2019-08-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 8 |
| Dependencies | 2 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Matt Chaffe |
| Maintainers | mattchewone |

## Links

- npm: https://www.npmjs.com/package/amqp-read
- npm.io page: https://npm.io/package/amqp-read

## Dependencies (2)

- [amqplib](https://npm.io/package/amqplib.md) ^0.5.5
- [commander](https://npm.io/package/commander.md) ^3.0.0

## Recent versions

- 1.0.0 (latest) — 2019-08-29

## README

`amqp-read` is a cli tool for reading from AMQP/RabbitMQ broker queue into a file.

## Installation

    $ npm install amqp-read -g

## Usage overview

```
Usage: node ./bin/amqp-read [options]

Options:
  --uri           uri                                                                          [required]
  --queue, -q     queue's name to work with                                                    [required]
  --export, -e    the file to output messages to                                               [required]
  --count, -c     limit the number of message to read
```

### Read the first 5000 messages of a queue
into a file
```
  amqp-read --host amqp://guest:guest@localhost/test -q queuetest --count 5000 --export dump.json
```

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