🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

pipefi

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pipefi

A library for simple RabbitMQ filters

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
2
Created
Source

pipefi

Build Status

A library for simple RabbitMQ filters

Installation

$ npm i pipefi

Usage

Note: Only works with Node v8+

Take a look at the example

const pipefi = require('pipefi');

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

pipefi(config);

Config

  • connection
  • pipes

connection

Type: object

The connection object consists of 4 properties:

  • user (string)
  • password (string)
  • host (string)
  • port (number)

Example:

{
  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:

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

LICENSE

MIT © Aichbauer Lukas, Stoecklmair Jan Peer

Keywords

pipes

FAQs

Package last updated on 21 Oct 2017

Did you know?

Socket

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