# jrs

> A wrapper library to handle jackrabbit jobs via emit emitter pattern.

Latest version **1.0.0** (published 2014-12-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install jrs
pnpm add jrs
yarn add jrs
bun add jrs
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2014-12-22 |
| First published | 2014-12-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Tom |
| Maintainers | twilson63 |
| Keywords | MicroServices |

## Links

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

## Dependencies (2)

- [highland](https://npm.io/package/highland.md) ^2.2.0
- [jackrabbit](https://npm.io/package/jackrabbit.md) ^3.0.8

## Recent versions

- 1.0.0 (latest) — 2014-12-22

## README

# JRS (Jack Rabbit Micro Serivce)

This module wraps the Jack Rabbit module to make it easy to integrate RabbitMQ
into micro-services via event emitter pattern.

## Usage

``` js

var jrs = require('jrs');

var svc = jrs({ server: 'amqp://localhost', queue: 'foo.bar'});

svc.on('job', function(job, ack) {
  // process job and acknowledge  
  console.log(job);
  ack();
});

svc.on('error', function(err) {
  // handle error
});

```

or with highland

``` js
var jrs = require('jrs');
var _ = require('highland');

var handleJob = /* ... */;
var handleError = /* ... */;

var svc = jrs({ server: 'amqp://localhost', queue: 'foo.bar'});

_('job', svc, ['job', 'ack']).each(handleJob);
_('error', svc).each(handleError);

```

## Install

``` sh
npm install jrs --save
```

## LICENSE

MIT

## Contributing

(see CONTRIBUTING.md)

## Thanks

* Creator of JackRabbit
* Creator of Node
* Creator of OPEN Open Source

## Contributors

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