# jm-mq

> a mq lib using redis

Latest version **0.2.2** (published 2017-03-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install jm-mq
pnpm add jm-mq
yarn add jm-mq
bun add jm-mq
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.2 |
| Published | 2017-03-27 |
| First published | 2016-03-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jeff YU |
| Maintainers | jeffyu |
| Keywords | javascript, jm-mq |

## Links

- npm: https://www.npmjs.com/package/jm-mq
- Repository: https://github.com/jm-root/jm-mq
- Issues: https://github.com/jm-root/jm-mq/issues
- npm.io page: https://npm.io/package/jm-mq

## Dependencies (3)

- [redis](https://npm.io/package/redis.md) ^2.7.1
- [jm-core](https://npm.io/package/jm-core.md) ^0.0.7
- [objectid](https://npm.io/package/objectid.md) ^3.2.1

## Recent versions

- 0.2.2 (latest) — 2017-03-27
- 0.2.1 — 2017-03-10
- 0.2.0 — 2016-10-08
- 0.1.0 — 2016-06-06
- 0.0.5 — 2016-06-03
- 0.0.4 — 2016-06-02
- 0.0.3 — 2016-06-02
- 0.0.2 — 2016-03-11
- 0.0.1 — 2016-03-11

## README

jm-mq
=========

a mq lib using redis

```js
var mq = require('jm-mq')({
    //url: 'redis://127.0.0.1'
});
mq.set('account', 'test', function(err){
    if(err){
        console.info(err);
        return;
    }
    mq.get('account', function(err, v){
        console.info(v);
    });
});

var channelName = 'test';
mq.subscribe(channelName);
mq.onMessage(function(channel, message){
    console.info('subscribe2 revevied ' + channel + ': ' + message);
});

mq.publish(channelName, '1st mq message');
mq.publish(channelName, '2nd mq message');

```

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