# nsq-wrapper

> Wrapper for nsqjs to easily subscribe to multiple topics

Latest version **0.4.0** (published 2017-03-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install nsq-wrapper
pnpm add nsq-wrapper
yarn add nsq-wrapper
bun add nsq-wrapper
```

## 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.4.0 |
| Published | 2017-03-02 |
| First published | 2017-02-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Till Hering |
| Maintainers | vorwaertsdevs |

## Links

- npm: https://www.npmjs.com/package/nsq-wrapper
- npm.io page: https://npm.io/package/nsq-wrapper

## Dependencies (1)

- [nsqjs](https://npm.io/package/nsqjs.md) ^0.7.13

## Recent versions

- 0.4.0 (latest) — 2017-03-02
- 0.3.1 — 2017-02-28
- 0.3.0 — 2017-02-28
- 0.2.0 — 2017-02-13
- 0.1.0 — 2017-02-09
- 0.0.1 — 2017-02-09

## README

# nsq-wrapper
Wrapper for nsqjs to easily subscribe to multiple topics

```
const NSQ_Wrapper = require('nsq-wrapper')

const wrapper = new NSQ_Wrapper('channel', {
    topic1: function (msg, topic) {
        msg.finish();
    }
}, {
    nsqdHost: 'localhost',
    nsqdPort: '4150',
    nsqlookupdHost: 'localhost',
    nsqlookupdPort: '4161'
});

wrapper.connect().then(function () {
    wrapper.publish('topic1', { foo: 'bar' });
});
```

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