# pipefi

> A library for simple RabbitMQ filters

Latest version **1.0.1** (published 2017-10-21) · MIT license · 0 weekly downloads

## Install

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

## 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.1 |
| Published | 2017-10-21 |
| First published | 2017-10-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8.0.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Aichbauer Lukas |
| Maintainers | jpeer, aichbauer |
| Keywords | pipes, filters, rabbitmq, messaging, amqplib |

## Links

- npm: https://www.npmjs.com/package/pipefi
- Repository: https://github.com/aichbauer/pipefi
- Homepage: https://github.com/aichbauer/pipefi#readme
- Issues: https://github.com/aichbauer/pipefi/issues
- npm.io page: https://npm.io/package/pipefi

## Dependencies (1)

- [amqplib](https://npm.io/package/amqplib.md) ^0.5.1

## Alternatives

- [byte-size](https://npm.io/package/byte-size.md) — 2.1M weekly downloads
- [speed-limiter](https://npm.io/package/speed-limiter.md) — 16.0K weekly downloads
- [@powersync/node](https://npm.io/package/@powersync/node.md) — 10.9K weekly downloads
- [@ledgerhq/coin-cardano](https://npm.io/package/@ledgerhq/coin-cardano.md) — 1.0K weekly downloads
- [@jayesol/jayeson.lib.streamfinder](https://npm.io/package/@jayesol/jayeson.lib.streamfinder.md) — 1.0K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2017-10-21
- 1.0.0 — 2017-10-21

## README

# pipefi

[![Build Status](https://travis-ci.org/aichbauer/pipefi.svg?branch=master)](https://travis-ci.org/aichbauer/pipefi)

> A library for simple [RabbitMQ](https://www.rabbitmq.com/) filters

## Installation

```sh
$ npm i pipefi
```

## Usage

> *Note:* Only works with `Node v8+`

> Take a look at the [example](./example)

```js
const pipefi = require('pipefi');

const config = require('path/to/config');

pipefi(config);
```

## Config

* [connection](#connection)
* [pipes](#pipes)

### connection

**Type:** `object`

The connection object consists of 4 properties:
* user (`string`)
* password (`string`)
* host (`string`)
* port (`number`)

Example:
```js
{
  connection: {
    user: 'guest',
    password: 'guest',
    host: 'localhost',
    port: 5672,
  },
}
```

### pipes

**Type:** `array`

Pipes consists of an array of objects. One object consists of 3 different properties:
* from (`string`)
* to (`string`)
* filter (`function`)

Example:
```js
{
  pipes: [
    {
      from: 'filterOne',
      to: 'filterTwo',
      filter: (msg) => msg, // do something with the message
    },
  ],
}
```

## LICENSE

MIT © Aichbauer Lukas, Stoecklmair Jan Peer

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