{"_id":"amqp-dsl","_rev":"21-e4c95e75032f1fc931f1228ad547e7bf","name":"amqp-dsl","description":"Amqp-DSL - Fluent interface for node-amqp","dist-tags":{"latest":"2.0.2"},"versions":{"1.0.0":{"name":"amqp-dsl","description":"Amqp-DSL - Fluent interface for node-amqp","keywords":["amqp","dsl"],"version":"1.0.0","homepage":"https://github.com/FGRibreau/node-amqp-dsl","repository":"","dependencies":{"coffee-script":"1.0.0","async":"0.1.x","amqp":"0.1.x","docco":"0.3.x"},"devDependencies":{"vows":"0.6.x"},"scripts":{"test":"./node_modules/vows/bin/vows --spec"},"author":{"name":"Francois-Guillaume Ribreau","email":"npm@fgribreau.com","url":"http://fgribreau.com"},"main":"lib/AmqpDsl","engines":{"node":">= 0.4.12"},"_npmUser":{"name":"fgribreau","email":"npm@fgribreau.com"},"_id":"amqp-dsl@1.0.0","_engineSupported":true,"_npmVersion":"1.0.104","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"120b6359de3951d47ed2c572590da6a857ac84b4","tarball":"https://registry.npmjs.org/amqp-dsl/-/amqp-dsl-1.0.0.tgz","integrity":"sha512-kH+y05mHd6fFlvm/I99v9x4pmt5F5AyFLgRFcDYdtJtB3DqM2j+uX0c6J2Tef321lNTM5ONTsqhnmpT5ifP1Kg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCn6o5oMPkGjMvrZ9AMFPZFeFrP3J96Mf+bcn2jFyCPngIhAJjwGIc5yulw3YPw4uwB7swtRS28ffVGYvQ8bOWZ5i6i"}]},"maintainers":[{"name":"fgribreau","email":"npm@fgribreau.com"}]},"1.0.1":{"name":"amqp-dsl","description":"Amqp-DSL - Fluent interface for node-amqp","keywords":["amqp","dsl"],"version":"1.0.1","homepage":"https://github.com/FGRibreau/node-amqp-dsl","repository":"","dependencies":{"coffee-script":"1.0.0","async":"0.1.x","amqp":"0.1.x","docco":"0.3.x"},"devDependencies":{"vows":"0.6.x"},"scripts":{"test":"./node_modules/vows/bin/vows --spec"},"author":{"name":"Francois-Guillaume Ribreau","email":"npm@fgribreau.com","url":"http://fgribreau.com"},"main":"lib/AmqpDsl","engines":{"node":">= 0.4.12"},"_npmUser":{"name":"fgribreau","email":"npm@fgribreau.com"},"_id":"amqp-dsl@1.0.1","_engineSupported":true,"_npmVersion":"1.0.104","_nodeVersion":"v0.6.3","_defaultsLoaded":true,"dist":{"shasum":"e19b43f6966429829910d15b85e40cf491519776","tarball":"https://registry.npmjs.org/amqp-dsl/-/amqp-dsl-1.0.1.tgz","integrity":"sha512-7c7JZlBXupMHpZ9jDmqUfWCFHY3CcmCM/z0n6EMqGBPpV9TqPmYgYkd3KsxWicckM1mas/X1cYLq70J91x8MTg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDVYoRBoJjr85r9H+QXskr9jwO90JvLvvIH+3Zo3VuVGgIgOChCX5lAq3V4uZEJEixFBOx8hPm0o2gS8fkqrT2U0ig="}]},"maintainers":[{"name":"fgribreau","email":"npm@fgribreau.com"}]},"1.0.2":{"name":"amqp-dsl","description":"Amqp-DSL - Fluent interface for node-amqp","keywords":["amqp","dsl"],"version":"1.0.2","homepage":"https://github.com/FGRibreau/node-amqp-dsl","repository":"","dependencies":{"async":"0.1.x","amqp":"~0.1.4","docco":"0.3.x","coffee-script":"~1.4.0"},"devDependencies":{"vows":"~0.7.0","grunt":"~0.3.17"},"scripts":{"test":"./node_modules/vows/bin/vows --spec"},"author":{"name":"Francois-Guillaume Ribreau","email":"npm@fgribreau.com","url":"http://fgribreau.com"},"main":"./index","engines":{"node":">= 0.4.12"},"_id":"amqp-dsl@1.0.2","dist":{"shasum":"18261c93321870360ce75bf8909b0bca116e90e9","tarball":"https://registry.npmjs.org/amqp-dsl/-/amqp-dsl-1.0.2.tgz","integrity":"sha512-7xAGmYtLR07w74C4qN/XSptGYifZwh9E8EuXCTLxIxbn6hvGxRMOfJT5i99Vk8pozjoRyhY2Y0dn2o04vFgQeA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFlwjVtuQWt3NmCIgGSOTSa6c+hH7H+Jn1vms0VW7Rq3AiEA79ImydWMJILCbK7BFi2iben8RYyAL5PoNQU+S5amslU="}]},"_npmVersion":"1.1.59","_npmUser":{"name":"fgribreau","email":"npm@fgribreau.com"},"maintainers":[{"name":"fgribreau","email":"npm@fgribreau.com"}]},"1.0.3":{"name":"amqp-dsl","description":"Amqp-DSL - Fluent interface for node-amqp","keywords":["amqp","dsl"],"version":"1.0.3","homepage":"https://github.com/FGRibreau/node-amqp-dsl","repository":"","dependencies":{"async":"0.1.x","amqp":"~0.1.4","docco":"0.3.x","coffee-script":"~1.4.0"},"devDependencies":{"vows":"~0.7.0","grunt":"~0.3.17"},"scripts":{"test":"./node_modules/vows/bin/vows --spec"},"author":{"name":"Francois-Guillaume Ribreau","email":"npm@fgribreau.com","url":"http://fgribreau.com"},"main":"./index","engines":{"node":">= 0.4.12"},"_id":"amqp-dsl@1.0.3","dist":{"shasum":"ef85469283bbbae61477d392d4687503f6e35292","tarball":"https://registry.npmjs.org/amqp-dsl/-/amqp-dsl-1.0.3.tgz","integrity":"sha512-3e/yxRtjAWv+lGgAwVl7DCpet2dI4wu0jbs+YdaoyL3VXcO0ry5QZ4p8F1amTmAP2gqS6eVYatuh6DrSnv+YzQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGBNxwMT0QzDItxgfIYXLyg+FlVz9qvEXtO2GXOoF2brAiALytY4TK/mrQ0moyxXNuZxlB0bi8XgSiFixuqIamVE9w=="}]},"_npmVersion":"1.1.59","_npmUser":{"name":"fgribreau","email":"npm@fgribreau.com"},"maintainers":[{"name":"fgribreau","email":"npm@fgribreau.com"}]},"1.0.4":{"name":"amqp-dsl","description":"Amqp-DSL - Fluent interface for node-amqp","keywords":["amqp","dsl"],"version":"1.0.4","homepage":"https://github.com/FGRibreau/node-amqp-dsl","repository":"","dependencies":{"async":"0.1.x","amqp":"~0.1.4","docco":"0.3.x","coffee-script":"~1.4.0"},"devDependencies":{"vows":"~0.7.0","grunt":"~0.3.17"},"scripts":{"test":"./node_modules/vows/bin/vows --spec"},"author":{"name":"Francois-Guillaume Ribreau","email":"npm@fgribreau.com","url":"http://fgribreau.com"},"main":"./index","engines":{"node":">= 0.4.12"},"_id":"amqp-dsl@1.0.4","dist":{"shasum":"046ac79b3a5a5583bf29696b181a4ea9a6af5393","tarball":"https://registry.npmjs.org/amqp-dsl/-/amqp-dsl-1.0.4.tgz","integrity":"sha512-k3oHdP+97DPXk/U1wxigx9a3WcGFrcVhsYQ6i/HBTvsPegPphODICU9b2I13vydA1/KO6KgpiBwW6+XLkENURg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDBkcIRSN+XLC47q0ZqbKSsKjid4bHelCTTd4FcyLZgaQIgM5KZRDbPBSq8t4mVNqdjMjioWQDemA9l95Aj4l2Ay0Y="}]},"_npmVersion":"1.1.59","_npmUser":{"name":"fgribreau","email":"npm@fgribreau.com"},"maintainers":[{"name":"fgribreau","email":"npm@fgribreau.com"}]},"1.0.5":{"name":"amqp-dsl","description":"Amqp-DSL - Fluent interface for node-amqp","keywords":["amqp","dsl"],"version":"1.0.5","homepage":"https://github.com/FGRibreau/node-amqp-dsl","repository":"","dependencies":{"async":"0.1.x","amqp":"0.1.3","docco":"0.3.x","coffee-script":"~1.4.0"},"devDependencies":{"vows":"~0.7.0","grunt":"~0.3.17"},"scripts":{"test":"./node_modules/vows/bin/vows --spec"},"author":{"name":"Francois-Guillaume Ribreau","email":"npm@fgribreau.com","url":"http://fgribreau.com"},"main":"./index","engines":{"node":">= 0.4.12"},"_id":"amqp-dsl@1.0.5","dist":{"shasum":"d33c03979a04b139a3d3fb7e79b06111ffd04e6e","tarball":"https://registry.npmjs.org/amqp-dsl/-/amqp-dsl-1.0.5.tgz","integrity":"sha512-SE5zzpyAcGehCIHgMmJyahXhKW5sJ0OsBGgPIoXGeshEaoK7guMllqNc/UcHGh25yLvPjn9tgeKsiPOdVkkLCw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFRLT391ZILp3g8eBDLsgHh2rDvEOF1q3lQRw4e4RrH7AiEAwrDyLXsL2Danv1dR4eojAAY9JF02lW0Z2gxpps8X7vs="}]},"_npmVersion":"1.1.59","_npmUser":{"name":"fgribreau","email":"npm@fgribreau.com"},"maintainers":[{"name":"fgribreau","email":"npm@fgribreau.com"}]},"1.0.6":{"name":"amqp-dsl","description":"Amqp-DSL - Fluent interface for node-amqp","keywords":["amqp","dsl"],"version":"1.0.6","homepage":"https://github.com/FGRibreau/node-amqp-dsl","repository":"","dependencies":{"async":"0.2.6","amqp":"0.1.6","docco":"0.3.x","coffee-script":"~1.4.0"},"devDependencies":{"vows":"~0.7.0","grunt":"~0.3.17"},"scripts":{"test":"./node_modules/vows/bin/vows --spec"},"author":{"name":"Francois-Guillaume Ribreau","email":"npm@fgribreau.com","url":"http://fgribreau.com"},"main":"./index","engines":{"node":">= 0.4.12"},"_id":"amqp-dsl@1.0.6","dist":{"shasum":"c39d33ea533dad9ed86af84094bf94ee42875c63","tarball":"https://registry.npmjs.org/amqp-dsl/-/amqp-dsl-1.0.6.tgz","integrity":"sha512-U6tvptkN2l9LDndQpRLJQgDG2uVV5jrkHJrC5hsm0vRT7G5ncZSv+8fl+FIF30uG2DgFA36s5yF6cM21C7mgLA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIByVQUBONOYs5YjfgnFkXR/lwDdxXOFVqkPcsqjbXNmlAiBRCEUhuVkFEXKK+WvMcsy3/MPdtKMnmiF1jtszKq5p1w=="}]},"_npmVersion":"1.1.59","_npmUser":{"name":"fgribreau","email":"npm@fgribreau.com"},"maintainers":[{"name":"fgribreau","email":"npm@fgribreau.com"}]},"2.0.1":{"name":"amqp-dsl","description":"Amqp-DSL - Fluent interface for node-amqp","keywords":["amqp","dsl"],"version":"2.0.1","homepage":"https://github.com/FGRibreau/node-amqp-dsl","repository":"","dependencies":{"amqp":"^0.2.0","async":"^0.9.0","coffee-script":"~1.4.0","docco":"0.3.x"},"devDependencies":{"vows":"~0.7.0","grunt":"~0.3.17"},"scripts":{"test":"./node_modules/vows/bin/vows --spec"},"author":{"name":"Francois-Guillaume Ribreau","email":"npm@fgribreau.com","url":"http://fgribreau.com"},"main":"./index","engines":{"node":">= 0.4.12"},"gitHead":"d263b8797ff0474fc706f042ee2839eeeb1a4f7f","_id":"amqp-dsl@2.0.1","_shasum":"8be71a5e52ea6b3756c30e694a7a705bb95414b3","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"fgribreau","email":"npm@fgribreau.com"},"maintainers":[{"name":"fgribreau","email":"npm@fgribreau.com"}],"dist":{"shasum":"8be71a5e52ea6b3756c30e694a7a705bb95414b3","tarball":"https://registry.npmjs.org/amqp-dsl/-/amqp-dsl-2.0.1.tgz","integrity":"sha512-jVdmEpBBXWBmvZC40QZNtwMZcttgs5VIuc33sbPT54hhGkGn3cQvNG0OxIh4rvxtutf0F7HjtKIOWDh3SnoJzg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDtZ0qC3pD8xhy1zG3/p7E/WZl/iYtaJsfqWknhGI7TxgIhAJUTiNO4VXtJBey64c2a7DCgWYuZuJJu35xZGQEFQrDJ"}]}},"2.0.2":{"name":"amqp-dsl","description":"Amqp-DSL - Fluent interface for node-amqp","keywords":["amqp","dsl"],"version":"2.0.2","homepage":"https://github.com/FGRibreau/node-amqp-dsl","repository":"","dependencies":{"amqp":"^0.2.6","async":"^0.9.0","coffee-script":"~1.4.0","docco":"0.3.x"},"devDependencies":{"vows":"~0.7.0","grunt":"~0.3.17"},"scripts":{"test":"vows --spec"},"author":{"name":"Francois-Guillaume Ribreau","email":"npm@fgribreau.com","url":"http://fgribreau.com"},"engines":{"node":">= 0.4.12"},"main":"index.js","gitHead":"557da12e093e77c0938a24d45a59d6db01eea87f","_id":"amqp-dsl@2.0.2","_npmVersion":"5.3.0","_nodeVersion":"8.1.4","_npmUser":{"name":"fgribreau","email":"npm@fgribreau.com"},"dist":{"integrity":"sha512-6foB8VVAoRSUSHS1ea6XoJICz8aNusZoXgtVucY4DajjipjWGCHQJV1B8M2IGXgtaHl4d8kJKmDoW4Y5izm+0w==","shasum":"53c9d393d2d01741e29877c7449216f44df43457","tarball":"https://registry.npmjs.org/amqp-dsl/-/amqp-dsl-2.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCCrql1NEFM2bzilk15NCPg0UWmsjeQqtTnvxQESJjYEAIhAO/Wi77i5zn8RyC+p8mYZSHznlaJGnWtejG2Lj1RcZPV"}]},"maintainers":[{"name":"fgribreau","email":"npm@fgribreau.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amqp-dsl-2.0.2.tgz_1508358228717_0.7111195595934987"}}},"readme":"## Fluent Interface for dealing with AMQP on NodeJS [![Build Status](https://secure.travis-ci.org/FGRibreau/node-amqp-dsl.png)](http://travis-ci.org/FGRibreau/node-amqp-dsl)\n\nAMQP-DSL is a [fluent interface](http://en.wikipedia.org/wiki/Fluent_interface) wrapper for [node-amqp](https://github.com/postwait/node-amqp) and help you write AMQP binding code in a clean and efficient way.\n\n## Installation\n\n    $ npm install amqp-dsl\n\n## Usage overview\n\n### Simple connection (more details: `docs/example-connection`)\n\n```coffeescript\n\namqp = require 'amqp-dsl'\n\namqp.login(\n\n  login: 'user'\n  password: 'password'\n  host: 'localhost'\n\n).connect((err, amqp) ->\n\n  if err\n    throw err\n    return\n\n  console.log 'We are connected !'\n\n)\n```\n\n### Simple example (more details: `docs/example-simple`)\n\n```coffeescript\n\nAmqpDsl = require 'amqp-dsl'\n\nAmqpDsl.login(\n  login: 'legen'\n  password: 'dary'\n)\n.on( 'close', () -> console.error \"RabbitMQ connection closed\" )\n.on( 'error', (err) -> console.error \"RabbitMQ error\", err )\n.on( 'ready', () -> console.log \"Connected to RabbitMQ\" )\n\n.queue( 'testQueue', (queue) -> console.log \"Connected to Queue\", queue.name )\n  .bind( 'stream', '#' )\n  .bind( 'stream2', 'routing.key' )\n  .subscribe( (message, header, deliveryInfo) -> )\n\n.queue( 'queue2' )\n  .bind( 'search', '#.ok' )\n\n.queue( 'queue3', passive:true )\n\n.connect( (err, amqp) ->\n\n  if err\n    throw err\n    return\n\n  # Do other stuff with `amqp` like subscribing to a queue\n\n  queue3 = amqp.queues.queue3\n\n  queue3.subscribe( ack:true, ( message, header, deliveryInfo ) ->\n    console.log \"Hey ! We got one new message !\"\n    queue3.shift()\n  )\n\n)\n```\n\nSee `examples/` and `docs/` for more information.\n\n## API\n\n### .login\n * `login( options = {} )`\n\n### .on\n * `on( event, listener )`\n\n### .exchange\n * `.exchange( name, options )`\n * `.exchange( name, callback(exchange) )`\n * `.exchange( name, options, callback(exchange) )`\n\n### .queue\n * `.queue( name, options )`\n * `.queue( name, callback(queue) )`\n * `.queue( name, options, callback(queue) )`\n\n### .queue(...).subscribe\n * `.subscribe( callback(message, header, deliveryInfo) )`\n * `.subscribe( options, callback(message, header, deliveryInfo) )`\n\n### .queue(...).bind\n * `.bind( name, routingKey )`\n\n### .connect\n * `.connect()`\n * `.connect( callback(err, amqp) )`\n * `.connect( amqp, callback(err, amqp) )`\n\nThe `amqp` argument is simply hashtable with the following properties:\n\n * queues (hashtable of `AMQP::queues`)\n * exchanges (hashtable of `AMQP::Exchange`)\n * connection (`AMQP::Connection`)\n\n\n## Documentation\n\n### Build documentation\n    $ cake doc\n\n... and browse `docs/`\n\n## Test\n\n    $ npm test\n\n## Release History\nv2.0.0 - Updated node-amqp to `0.2.0` and async to `0.9.0`\nv1.0.3 - Support for .connect()\nv1.0.2 - Critical bug fix\nv1.0.1 - .bind & .subscribe can now be called multiple times. This is the behavior that should have been in place since the beginning.\n\n## Donate\n[Donate Bitcoins](https://coinbase.com/checkouts/fc3041b9d8116e0b98e7d243c4727a30)\n\n## License\nCopyright (c) 2014 Francois-Guillaume Ribreau\nLicensed under the MIT license.\n","maintainers":[{"name":"fgribreau","email":"npm@fgribreau.com"}],"time":{"modified":"2022-06-13T02:46:36.511Z","created":"2011-12-01T14:27:59.828Z","1.0.0":"2011-12-01T14:28:01.478Z","1.0.1":"2011-12-01T14:41:29.173Z","1.0.2":"2013-01-28T14:07:36.171Z","1.0.3":"2013-01-28T14:26:40.337Z","1.0.4":"2013-01-29T15:54:07.606Z","1.0.5":"2013-02-09T11:07:53.555Z","1.0.6":"2013-03-13T22:23:32.073Z","2.0.1":"2014-09-30T09:53:28.725Z","2.0.2":"2017-10-18T20:23:49.719Z"},"author":{"name":"Francois-Guillaume Ribreau","email":"npm@fgribreau.com","url":"http://fgribreau.com"},"homepage":"https://github.com/FGRibreau/node-amqp-dsl","keywords":["amqp","dsl"],"readmeFilename":"README.md"}