Socket
Socket
Sign inDemoInstall

amqper

Package Overview
Dependencies
32
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    amqper

A simple and elegant AMQP client for node based on amqplib.


Version published
Weekly downloads
25
increased by525%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

amqper

NPM Version Build Status Coverage Quality Dependencies

A simple and elegant AMQP client for node based on amqplib.

Install

$ npm install --save amqper

Usage

round-robin

Run multiple consumer.js for round-robin shared.

consumer.js

var amqper = require('amqper');

var client = amqper.connect('amqp://guest:guest@localhost:5672');

client.route('test.a', {}, function (message) {
  console.log(message.payload);
});


producer.js

var amqper = require('amqper');

var client = amqper.connect('amqp://guest:guest@localhost:5672');

for (var i = 0; i < 10; i++) {
  client.publish('amq.topic', 'test.a', i);
}

License

MIT © Tao Yuan

Keywords

FAQs

Last updated on 15 Jan 2018

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc