# node-messageq

> message queue service

Latest version **0.1.1** (published 2021-05-17) · 0 weekly downloads

## Install

```sh
npm install node-messageq
pnpm add node-messageq
yarn add node-messageq
bun add node-messageq
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2021-05-17 |
| First published | 2018-11-13 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8.1.0 <=12.22.1 |
| Dependencies | 3 |
| Unpacked size | 9.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Shobhit Mishra |
| Maintainers | shobhitmshr002 |
| Keywords | mesageQ, nodeMQ, pubsub |

## Links

- npm: https://www.npmjs.com/package/node-messageq
- Repository: https://github.com/shobhitmshr002/node-messageq
- Homepage: https://github.com/shobhitmshr002/node-messageq#readme
- Issues: https://github.com/shobhitmshr002/node-messageq/issues
- npm.io page: https://npm.io/package/node-messageq

## Dependencies (3)

- [amqplib](https://npm.io/package/amqplib.md) ^0.5.2
- [winston](https://npm.io/package/winston.md) ^3.1.0
- [node-messageq](https://npm.io/package/node-messageq.md) 0.0.5

## Alternatives

- [async-exit-hook](https://npm.io/package/async-exit-hook.md) — 3.7M weekly downloads
- [evnty](https://npm.io/package/evnty.md) — 7.2K weekly downloads
- [eleventy-plugin-asciidoc](https://npm.io/package/eleventy-plugin-asciidoc.md) — 3.5K weekly downloads
- [@jswork/next-get2get](https://npm.io/package/@jswork/next-get2get.md) — 945 weekly downloads
- [@dashersw/axon](https://npm.io/package/@dashersw/axon.md) — 934 weekly downloads

## Recent versions

- 0.1.1 (latest) — 2021-05-17
- 0.1.0 — 2018-11-28
- 0.0.9 — 2018-11-22
- 0.0.8 — 2018-11-22
- 0.0.7 — 2018-11-13
- 0.0.6 — 2018-11-13
- 0.0.5 — 2018-11-13
- 0.0.4 — 2018-11-13
- 0.0.3 — 2018-11-13
- 0.0.2 — 2018-11-13
- 0.0.1 — 2018-11-13

## README

# node-messageq

node-messageq is module to provide support for producer/consumer messaging system for different message engines.
Currently module provides support for following four functions, more will be updated soon.
  - publish
  - publishAsync
  - publishWithKey
  - consume

**Can be installed using**
```sh
$ npm install node-messageq
```
**Configure**
```sh
var options = {'driver':'rabbitMQ','AMQP_URL':'amqp://guest:guest@127.0.0.1:5672'};
var mh = require('node-messageq')(options);
````
**publish**
```sh
mh.publish('rewardsQueue',{key:'rewards',data:'hello rewards'},{persistent:true})
```
**publishAsync**
```sh
mh.publishAsync('rewardsQueue',{key:'rewards',data:'hellorewards'},{persistent:true},
function(result){
        console.log('after pub',result);
})
```
**publishWithKey**
```sh
mh.publishWithKey('rewardsQueue','mykey',{key:'rewards',data:'hello rewards'},{persistent:true},function(result){
        console.log('after pub',result);
});
```
**consume**
```sh
mh.consume('rewardsQueue', function(err, msg){
    console.log('consumed====1111',msg.content.toString());
});
```
**create channel**
```sh
 mh.createChannel(function(err,channel){
         console.log(err,channel);

  })
```

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