{"_id":"@ascension/jackrabbit","_rev":"1-4f606a3dd87d310696f8523226580296","name":"@ascension/jackrabbit","dist-tags":{"latest":"4.4.0"},"versions":{"4.4.0":{"name":"@ascension/jackrabbit","version":"4.4.0","description":"Easy RabbitMQ for node","keywords":["amqp","rabbit","job","jobs","queue","task","resqueue"],"repository":{"type":"git","url":"git+https://github.com/ascension/jackrabbit.git"},"homepage":"https://github.com/ascension/jackrabbit","bugs":{"url":"https://github.com/ascension/jackrabbit/issues"},"main":"lib/jackrabbit.js","scripts":{"test":"mocha -R spec && npm run test-format","test-format":"./node_modules/prettier-eslint-cli/dist/index.js lib/**/*.js test/**/*.js --list-different","format":"./node_modules/prettier-eslint-cli/dist/index.js lib/**/*.js test/**/*.js --write"},"engines":{"node":">= 0.10.x"},"author":{"name":"Jerrod Bunce","email":"jerroddb@gmail.com"},"license":"MIT","dependencies":{"amqplib":"^0.4.2","lodash":"^3.10.1","uuid":"^3.3.2"},"devDependencies":{"chai":"^3.2.0","mocha":"^2.2.5","prettier":"1.13.7","prettier-eslint-cli":"^4.7.1","release-it":"^7.4.7"},"directories":{"example":"examples","lib":"lib","test":"test"},"gitHead":"a8b307ed4c3280bac55c1586930e8679da1f6134","_id":"@ascension/jackrabbit@4.4.0","_nodeVersion":"10.16.3","_npmVersion":"6.9.0","dist":{"integrity":"sha512-Las3tDDy5Tfcky2Urc4EhrMONhBlpe2+X7Yd1vXF2zXTo5QoAkvBNxWcWY4Z0i1yUhuKHlXzHrsSDIWBao2ANw==","shasum":"7e2cbc8cbf9ef9aa79aacc1152405ee9894897c6","tarball":"https://registry.npmjs.org/@ascension/jackrabbit/-/jackrabbit-4.4.0.tgz","fileCount":25,"unpackedSize":32665,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdyYJaCRA9TVsSAnZWagAAPOEP/jYxl8UsjPgDz4zGVpRY\n81IqOANUDAJmHUEr4tm0DGE8PzEDeOuttkGlnFgxY1NOyoM2pswvlPdwiIz0\nU0uAz9ioedDoGPY/NDuOKaPl606mR5+HSHAEfDNgjELdworz4bTSYA2pqPwN\ndlnb0BUGqCfakwr1dDekeh1oxIhheupw3y1enfTE2xGxIgqN/C8mz+/1zS5e\nY0ZN5kzQ6NU5FSMGFqQQ2cavTG1SqmK5wghggZCor4Hy1IKsgU83vDkJ57Ts\nIk/ss6yCwKPwgDFg7v5nATpF3pxrFRMYQgqYSV88wgLla93qmzsEsepEmG0g\ntsdQpKhhwlYBF75wjWLOn+aCJMkla9gOGbo+wUwS7EbH7mRB735kJTBm6/OB\nLTMRzaHZzO1pPDeqY65MPI8T1q4z7Fo1fT8+su46MKGRVhx9gdJpF9Ej0dl3\nBkAXSj7FuDBa6TTiMbv2sdTDEG/53xop0ewrvK/3rEpBbCRwEMbkrqHLNBOW\n5CBf9PUcMqCfTqQkBMMkWMChHiMViLm2iQwtmCr4Ez5U5OHOsqFNy7QJLKQm\nUjKzIEZgEtFFu+ShqGqhxqdX+BqeuC2pmbfZ3Fk390LjdPKwntDmbTf28eBd\ntaBsZae766ZKL0Diu8qtknhhy7LFdfyFz3aP+5sysjskYUijSLSQhhOdOhUl\nOVq7\r\n=7OnJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICRzE6FsfJ8dQjA8QK5RqN5GI1WNL0vB3WfVOTwUXfrDAiEAon/QC3LnlTT2d5q7guppkYq5Z0qoX3i78pJz5EMjKLI="}]},"maintainers":[{"name":"ascension","email":"jerroddb@gmail.com"}],"_npmUser":{"name":"ascension","email":"jerroddb@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jackrabbit_4.4.0_1573487194363_0.5231414753461148"},"_hasShrinkwrap":false}},"time":{"created":"2019-11-11T15:46:33.995Z","4.4.0":"2019-11-11T15:46:34.484Z","modified":"2022-04-04T15:42:59.484Z"},"maintainers":[{"name":"ascension","email":"jerroddb@gmail.com"}],"description":"Easy RabbitMQ for node","homepage":"https://github.com/ascension/jackrabbit","keywords":["amqp","rabbit","job","jobs","queue","task","resqueue"],"repository":{"type":"git","url":"git+https://github.com/ascension/jackrabbit.git"},"author":{"name":"Jerrod Bunce","email":"jerroddb@gmail.com"},"bugs":{"url":"https://github.com/ascension/jackrabbit/issues"},"license":"MIT","readme":"# Jackrabbit\n\n[![Build Status][travis-image]][travis-url] [![NPM version][npm-image]][npm-url][![Renovate enabled](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com/)\n\n\n[RabbitMQ](https://www.rabbitmq.com/) in Node.js without hating life.\n\n## Simple Example\n\n*producer.js:*\n\n```js\nvar jackrabbit = require('jackrabbit');\nvar rabbit = jackrabbit(process.env.RABBIT_URL);\n\nrabbit\n  .default()\n  .publish('Hello World!', { key: 'hello' })\n  .on('drain', rabbit.close);\n```\n\n*consumer.js:*\n\n```js\nvar jackrabbit = require('jackrabbit');\nvar rabbit = jackrabbit(process.env.RABBIT_URL);\n\nrabbit\n  .default()\n  .queue({ name: 'hello' })\n  .consume(onMessage, { noAck: true });\n\nfunction onMessage(data) {\n  console.log('received:', data);\n}\n```\n\n## Ack/Nack Consumer Example\n\n```js\nvar jackrabbit = require('jackrabbit');\nvar rabbit = jackrabbit(process.env.RABBIT_URL);\n\nrabbit\n  .default()\n  .queue({ name: 'important_job' })\n  .consume(function(data, ack, nack, msg) {\n\n    // process data...\n    // and ACK on success\n    ack();\n\n    // or alternatively NACK on failure\n    // NOTE: this will requeue automatically\n    nack();\n\n    // or, if you want to nack without requeue:\n    nack({\n      requeue: false\n    });\n  })\n```\n\nJackrabbit is designed for *simplicity* and an easy API.\nIf you're an AMQP expert and want more power and flexibility,\ncheck out [Rabbot](https://github.com/arobson/rabbot).\n\n## More Examples\n\nFor now, the best usage help is can be found in [examples](https://github.com/hunterloftis/jackrabbit/tree/master/examples),\nwhich map 1-to-1 with the official RabbitMQ tutorials.\n\n## Installation\n\n```\nnpm install --save jackrabbit\n```\n\n## Tests\n\nThe tests are set up with Docker + Docker-Compose,\nso you don't need to install rabbitmq (or even node)\nto run them:\n\n```\n$ docker-compose run jackrabbit npm test\n```\n\nIf using Docker-Machine on OSX:\n\n```\n$ docker-machine start\n$ eval \"$(docker-machine env default)\"\n$ docker-compose run jackrabbit npm test\n```\n\n[npm-image]: https://img.shields.io/npm/v/jackrabbit.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/jackrabbit\n[travis-image]: https://travis-ci.org/hunterloftis/jackrabbit.svg?branch=master\n[travis-url]: https://travis-ci.org/hunterloftis/jackrabbit\n\n## Release\n\nReleases should be tagged according to [Semantic Versioning](https://semver.org/)\n\nProcess:\n\n- Add release notes to `releases.md`\n- Commit add push the release notes `git commit releases.md && git push origin master`\n- Release it `./node_modules/release-it/bin/release-it.js`\n","readmeFilename":"readme.md"}