{"id":22093213,"url":"https://github.com/iadvize/mq-library","last_synced_at":"2026-03-11T17:01:04.949Z","repository":{"id":29258217,"uuid":"32790812","full_name":"iadvize/mq-library","owner":"iadvize","description":"Wrapper around amqplib to manage easily rabbitmq connections and binding declarations","archived":false,"fork":false,"pushed_at":"2021-01-05T09:19:39.000Z","size":60,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":48,"default_branch":"master","last_synced_at":"2024-04-15T15:31:33.300Z","etag":null,"topics":["mq-library","rabbitmq","wrapper"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iadvize.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null}},"created_at":"2015-03-24T10:09:45.000Z","updated_at":"2021-01-05T09:19:38.000Z","dependencies_parsed_at":"2022-08-24T17:10:21.295Z","dependency_job_id":null,"html_url":"https://github.com/iadvize/mq-library","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iadvize%2Fmq-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iadvize%2Fmq-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iadvize%2Fmq-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iadvize%2Fmq-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iadvize","download_url":"https://codeload.github.com/iadvize/mq-library/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227476009,"owners_count":17779417,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mq-library","rabbitmq","wrapper"],"created_at":"2024-12-01T03:13:17.595Z","updated_at":"2026-03-11T17:01:04.896Z","avatar_url":"https://github.com/iadvize.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mq-library [![npm version](https://badge.fury.io/js/mq-library.svg)](https://badge.fury.io/js/mq-library)\n\nWrapper around amqplib to Manage easily rabbitmq connections and binding declarations.\n\n## Examples\n\n```javascript\n\nvar amqpConfig = {\n  connection: {\n    host: 'rabbitmq',\n    port: 5672,\n    vhost: '/',\n    user: 'guest',\n    pass: 'guest',\n    useConfirms: false\n  },\n  exchanges: [\n    {name: 'domain.events', type: 'topic', durable: true},\n    {name: 'domain.events.DL', type: 'topic'},\n    {name: 'domain.notifs', type: 'fanout', durable: true}\n  ],\n  queues: [\n    {name: 'domain.events.queue', subscribe: true, messageTtl: 60000, deadLetterExchange: 'domain.events.DL'},\n    {name: 'domain.notifs.queue', messageTtl: 60000}\n  ],\n  bindings: [\n    {exchange: 'domain.events', target: 'domain.events.queue', keys: ['some.routing.key.*']},\n    {exchange: 'domain.notifs', target: 'domain.notifs.queue'}\n  ]\n};\n\nvar mq = require('mq-library')(amqpConfig, logger);\n\nmq.then(function (channel) {\n  channel.consume('domain.events.queue', someFancyFunction);\n  channel.consume('domain.notifs.queue', someOtherFancyFunction);\n});\n```\n\n## Install\n\n```bash\nnpm install mq-library --save\n```\n\n## Documentation\n\n### How to publish a new version\n\n```bash\nnpm install npm-release -g\nnpm-release [major|minor|patch]\n```\n\nnpm-release is a little script to help release npm modules. It:\n\n- Bumps the version in package.json\n- Commits 'Release x.x.x'\n- Tags\n- Pushes to upstream\n- Publish on npm (if `private:true` is not present in package.json)\n\n## Contribute\n\nLook at contribution guidelines here : [CONTRIBUTING.md](CONTRIBUTING.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiadvize%2Fmq-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiadvize%2Fmq-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiadvize%2Fmq-library/lists"}