{"_id":"amqp-log-to-pg","_rev":"28-24db85cbe53bf21bc13bfdf14d484e67","name":"amqp-log-to-pg","dist-tags":{"meta":"1.1.0-meta.3","latest":"2.1.1","update":"2.0.0-update.5"},"versions":{"1.0.1-0":{"name":"amqp-log-to-pg","description":"Logs from an amqp queue to a db.","version":"1.0.1-0","author":{"name":"Tim Allen","email":"tim@noblesamurai.com"},"license":"BSD","main":"index.js","scripts":{"coverage":"nyc -a -c -r html -r text npm test","pretest":"semistandard --env mocha","test":"mocha --recursive test","watch":"mocha --recursive --watch test","docs":"jsdoc2md index.js","start":"node index.js"},"homepage":"https://github.com/noblesamurai/amqp-log-to-pg","repository":{"type":"git","url":"git://github.com/noblesamurai/amqp-log-to-pg.git"},"bugs":{"url":"https://github.com/noblesamurai/amqp-log-to-pg/issues"},"engines":{"node":"8.x","npm":"6.x"},"dependencies":{"amqp-wrapper":"^5.5.0","debug":"^2.6.6","knex":"^0.15.2","pg":"^6.1.5"},"devDependencies":{"chai":"^3.5.0","dirty-chai":"^1.2.2","jsdoc-to-markdown":"~3.0.0","mocha":"^5.2.0","nyc":"^10.1.2","proxyquire":"^1.7.11","semistandard":"*","sinon":"^2.2.0"},"keywords":[],"nyc":{"exclude":["coverage","test"]},"gitHead":"ba16c2dff796e4d0dfa0f80a578710634db75902","_id":"amqp-log-to-pg@1.0.1-0","_npmVersion":"6.3.0","_nodeVersion":"8.11.2","_npmUser":{"name":"timlesallen","email":"allen.timothy.email@gmail.com"},"dist":{"integrity":"sha512-98RSa+CxgeXo5jv2pnd64sWmxkhXRdvIn4Elk+3HsbipiYXFQoHYfedaWqeHKY6/s8aos5+DIdwou1I/uflzrQ==","shasum":"d67e6e3517f2949c6ecf05aef09aa4941fa72c61","tarball":"https://registry.npmjs.org/amqp-log-to-pg/-/amqp-log-to-pg-1.0.1-0.tgz","fileCount":10,"unpackedSize":7929,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbZ6d7CRA9TVsSAnZWagAAvAYP/0d36oGfeL1GfhdxAEKX\np1HuIDFrJbHO4Z/KHn5UFnDgUuGflOtyl6F+8L3WJTsrYoJ/LrYVgjHNtxSV\n21fqfC9oQOmCEJXEVxg3koyKx/DsS55Iy9RAwHEIaiI2rsD/vKUZFje4krpZ\nXl7wkhS04H+SYSdRjl8KqZn7UE5IHosd4DMVT6b73noZxVMrVfDUaqlgYcxe\nrAooyO4gyWOagdwF/ON1dkzlCFJPrgSN7JNHeM+OStk1/zaoysoNvpwRvq+l\nkjc3WOu9gYB6oQHXeIy7vCtMUWByCR+7aft53Iy6bZJvgBBZJLDJSDfH/WL3\nNKfsvAVlrGWm2a3Shj5pt2odfaONUg4lEvhtraN0p2CNYaRsp8vByOGTWyNY\n8q6OAF+sY6jl9hMsvOquYa8CqqP+aRLhmPigTkkUSwzRSgOUK+S0IhE2beKs\nIXeJRdZOcLXE2emjxLJP2lz5cl+kSDQ7DbgKIiIhIU7CvOvsG7jw0o5G5XXP\n3Qt0EQM4E/+mK1IvsA7SVbpuCjEi6qejafqf4sFhxV+VbPpQyw4fnk+gHSnH\ns8WX7dotSNIwLRkPHwKbrSCiTeAhpPlWJCSOqSjvv8w2TYPpYszTj9Nybdmd\nS//0g9owBjp51Q4xTk+7tE1rPiBiR6eYqeLixwBzAddHSTaLROmJkzddT5Gv\nSNmZ\r\n=QkrV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDlAP4o/K3WEiw5HUD8WZSkNDdsBq+p6TiH9cgynWxu0QIhAL8zFRGnMIoHVrsA3UAB20MNGxOZk9Pnz/lWjpXpWQJO"}]},"maintainers":[{"name":"timlesallen","email":"allen.timothy.email@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amqp-log-to-pg_1.0.1-0_1533519739303_0.18649470347803287"},"_hasShrinkwrap":false},"1.1.0-meta.0":{"name":"amqp-log-to-pg","description":"Logs from an amqp queue to a db.","version":"1.1.0-meta.0","author":{"name":"Tim Allen","email":"tim@noblesamurai.com"},"license":"BSD","main":"index.js","scripts":{"coverage":"nyc -a -c -r html -r text npm test","pretest":"semistandard --env mocha","test":"mocha --recursive test","watch":"mocha --recursive --watch test","docs":"jsdoc2md index.js","start":"node index.js"},"homepage":"https://github.com/noblesamurai/amqp-log-to-pg","repository":{"type":"git","url":"git://github.com/noblesamurai/amqp-log-to-pg.git"},"bugs":{"url":"https://github.com/noblesamurai/amqp-log-to-pg/issues"},"engines":{"node":"8.x","npm":"6.x"},"dependencies":{"amqp-wrapper":"^5.5.0","debug":"^2.6.6","knex":"^0.15.2","pg":"^6.1.5"},"devDependencies":{"chai":"^3.5.0","dirty-chai":"^1.2.2","jsdoc-to-markdown":"~3.0.0","mocha":"^5.2.0","nyc":"^10.1.2","proxyquire":"^1.7.11","semistandard":"*","sinon":"^2.2.0"},"keywords":[],"nyc":{"exclude":["coverage","test"]},"readme":"# Amqp-log-to-pg [![Build Status](https://secure.travis-ci.org/noblesamurai/amqp-log-to-pg.png?branch=master)](http://travis-ci.org/noblesamurai/amqp-log-to-pg) [![NPM version](https://badge-me.herokuapp.com/api/npm/amqp-log-to-pg.png)](http://badges.enytc.com/for/npm/amqp-log-to-pg)\n\n> Logs from an amqp queue to a postgres db.\n\n## Purpose\nLog from an arbitrary amqp queue to a postgres database.  Records are assumed\nto be in JSON format.  They are insert into the specified postgres table as\n`jsonb`.\n\n## Usage\nSet the env vars accordingly:\n- `AMQP_URL`\n- `AMQP_EXCHANGE`\n- `AMQP_CONSUME` - name of queue to consume from (auto-created)\n- `AMQP_ROUTING_KEY` - routing key to bind to the queue at startup)\n- `DATABASE_URL` - destination db to write to\n- `DATABASE_TABLE_NAME`\n\n## Execution\n`node index.js` (with env vars above set)\n\n## License\n\nThe BSD License\n\nCopyright (c) 2017, Tim Allen\n\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n  list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice, this\n  list of conditions and the following disclaimer in the documentation and/or\n  other materials provided with the distribution.\n\n* Neither the name of the Tim Allen nor the names of its\n  contributors may be used to endorse or promote products derived from\n  this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\nANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n","readmeFilename":"README.md","gitHead":"c8746981f188950995d0e526a0b819c02ba2c8f2","_id":"amqp-log-to-pg@1.1.0-meta.0","_npmVersion":"6.3.0","_nodeVersion":"8.11.2","_npmUser":{"name":"timlesallen","email":"allen.timothy.email@gmail.com"},"dist":{"integrity":"sha512-Tr0VcYeMY+Ue/XwhcqN9uWG6YHqFoaJU3UWVHhddMeMfJ8JvCDwYi20iCIEwsStX5hio3LThA3AxUpH+nyHxtQ==","shasum":"71327d2ac0638b58b8909b03956d13a3a777955f","tarball":"https://registry.npmjs.org/amqp-log-to-pg/-/amqp-log-to-pg-1.1.0-meta.0.tgz","fileCount":10,"unpackedSize":7949,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbZ6jnCRA9TVsSAnZWagAACBAP+wSHuzv1NK//j6SG2cvt\n5MixDd5HKNBK7Yu1DE8JLUQosv3nJyPVo+c9crrJyfupSt4CnCTtFsPWuiSn\nzHChdInR89eUi1cPx9ZdqiN0uYYGqdTHx0kjLty2Fa5JKsKYNVOMxRC4xZho\nKCc3xztMYHrF7kAfow2Mi+PyArk7hgwbqtbKCvOIDmkl+Hl4+NcQaC/djSAj\nUP2L2/7ZUytOLW8BxCLPKLbWqyrpXAJlKRZS9xQlnplWmw9PDHe4DumEK6EL\nl123lTkb2CBEn9ETNHpiOwWFTUCcdYyV9ZY32D9J4Y7e8viGUe7n/a5YmuRU\nVvOHbrJzOTHg0W13lv0R8ycyFe4U26jkkVQsqzaX74s3LZVxT9rCZIdVNJEj\n+6CLfXMa+SXw0pPV7+OHwgAiwhhgZY9qg6QAPl+ElcGVBHbwZ7LS6poybqqD\nuDghGVJFbR6lXwwKwzDso8JaPsf/Ot8pVAupv8R3Lg6XhInL1iDqz4I+vic3\nWT0IzPC7y0A1PtzttuIKKMvmZmJ5iFRn0g8LGbsDMzsOvCsxfhsCmXx79fbF\n12o5STiaYHsEY2OZH+5gjyzq7KhhYTIptC3AYJlmxwlYAb3pmOaMnSF3i7U5\n5E9SJpE5ai84xXt0xnncMKiLhWCUkLbrt2znu3BmmxMZdkWAs9KcbQZwhHU/\nwf14\r\n=WR5d\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDg5DVn75evchjdJNnNvkL5twj9K9EtWAt0tqoPqZ2EhQIhANkg3TzCQWRRzD1ujgN+3DL80ExK71itRx9RfCYUN6Ex"}]},"maintainers":[{"name":"timlesallen","email":"allen.timothy.email@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amqp-log-to-pg_1.1.0-meta.0_1533520102567_0.8048421263578713"},"_hasShrinkwrap":false},"1.1.0-meta.1":{"name":"amqp-log-to-pg","description":"Logs from an amqp queue to a db.","version":"1.1.0-meta.1","author":{"name":"Tim Allen","email":"tim@noblesamurai.com"},"license":"BSD","main":"index.js","scripts":{"coverage":"nyc -a -c -r html -r text npm test","pretest":"semistandard --env mocha","test":"mocha --recursive test","watch":"mocha --recursive --watch test","docs":"jsdoc2md index.js","start":"node index.js"},"homepage":"https://github.com/noblesamurai/amqp-log-to-pg","repository":{"type":"git","url":"git://github.com/noblesamurai/amqp-log-to-pg.git"},"bugs":{"url":"https://github.com/noblesamurai/amqp-log-to-pg/issues"},"engines":{"node":"8.x","npm":"6.x"},"dependencies":{"amqp-wrapper":"^5.5.0","debug":"^2.6.6","knex":"^0.15.2","pg":"^6.1.5"},"devDependencies":{"chai":"^3.5.0","dirty-chai":"^1.2.2","jsdoc-to-markdown":"~3.0.0","mocha":"^5.2.0","nyc":"^10.1.2","proxyquire":"^1.7.11","semistandard":"*","sinon":"^2.2.0"},"keywords":[],"nyc":{"exclude":["coverage","test"]},"readme":"# Amqp-log-to-pg [![Build Status](https://secure.travis-ci.org/noblesamurai/amqp-log-to-pg.png?branch=master)](http://travis-ci.org/noblesamurai/amqp-log-to-pg) [![NPM version](https://badge-me.herokuapp.com/api/npm/amqp-log-to-pg.png)](http://badges.enytc.com/for/npm/amqp-log-to-pg)\n\n> Logs from an amqp queue to a postgres db.\n\n## Purpose\nLog from an arbitrary amqp queue to a postgres database.  Records are assumed\nto be in JSON format.  They are insert into the specified postgres table as\n`jsonb`.\n\n## Usage\nSet the env vars accordingly:\n- `AMQP_URL`\n- `AMQP_EXCHANGE`\n- `AMQP_CONSUME` - name of queue to consume from (auto-created)\n- `AMQP_ROUTING_KEY` - routing key to bind to the queue at startup)\n- `DATABASE_URL` - destination db to write to\n- `DATABASE_TABLE_NAME`\n\n## Execution\n`node index.js` (with env vars above set)\n\n## License\n\nThe BSD License\n\nCopyright (c) 2017, Tim Allen\n\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n  list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice, this\n  list of conditions and the following disclaimer in the documentation and/or\n  other materials provided with the distribution.\n\n* Neither the name of the Tim Allen nor the names of its\n  contributors may be used to endorse or promote products derived from\n  this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\nANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n","readmeFilename":"README.md","gitHead":"4f7f14e80eda496e65567455a5d93f4ab606e363","_id":"amqp-log-to-pg@1.1.0-meta.1","_npmVersion":"6.3.0","_nodeVersion":"8.11.2","_npmUser":{"name":"timlesallen","email":"allen.timothy.email@gmail.com"},"dist":{"integrity":"sha512-1LpGfgBEOC+xn8NgY/xVg6ki3e/LYegOSL0OtFyM2dc3xFRmaoSykmkykoF24hSo6gq//nmNwB1orOevN4G1Qg==","shasum":"c8eb4882ff8d9ea48204fec132014056ccc059cd","tarball":"https://registry.npmjs.org/amqp-log-to-pg/-/amqp-log-to-pg-1.1.0-meta.1.tgz","fileCount":10,"unpackedSize":7951,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbZ9IkCRA9TVsSAnZWagAAFbUP/jlmLFKGHqWoTMdvjX/4\n7NVk56iqcqXRRc0xtfTXF+PFTfXDUJ3HBlDzLMH+33OsD9n1auaJcBiG0Le0\nXg1IxZu8E7UKL+GULF0/UTnSVSSraW3rkfVxPiHeIifXAfapEkU0ui7wp9Sa\n+VdK7iI5DlxV3OSuvxNcrW4FJrRjcaWyBNTnC9jvLunLS8Egd7pp0nznjv8l\nIzUlVwV5G9Es/6x/9jCVtsLD0dhj7+rp7FxLAH3Y8hIjnuw39wyXwIGG5mh7\n/yk4AiERhdVM7xnMf4YxDSLHIS9e23W/2O03zPycdktOcd+aijquRyuZtO99\nL6/TG8/n2qehmwCW8lJ8nzDm8rh4K+d7y+aYnbtnrI/bhs3V37OObwxuFhn7\nT5Rqt85HtqX8AVU1qH0kjEDRggyyMxj884jPh47bF67zjQKnBgmesYgSar4P\n0WSTbU3TBKsKzghW538tz7VrlGSsrCH6gJ1KreSiKG3KFOLy8NWOTj5+ibaO\nw/6WjpcVgn9Liue2wX1Rt2/4D+3GQYZAPKNFWzP4CBDF47Fr4GTZIkUlLCp2\nycopdEwzqFRVP2vzlopgjz1IHZbQaYAWQcozN7jI2Kt34X96tjKjhja+k1v6\nvPfEwQ/BoPmugsuvx3TIhXiVIQnQRcarm0mTdiEvp6NOc1HW7qpCJvTsngDZ\nS8u+\r\n=EDrc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF3yKZ0YBPqobWZM8NjlOFrzO+hbgnLzkB+2j3UNdxR1AiAGYmW6oaX71zaE7SUHeql/10EQi5Wip1GmvKBK2s79mg=="}]},"maintainers":[{"name":"timlesallen","email":"allen.timothy.email@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amqp-log-to-pg_1.1.0-meta.1_1533530659959_0.9858976433839182"},"_hasShrinkwrap":false},"1.1.0-meta.2":{"name":"amqp-log-to-pg","description":"Logs from an amqp queue to a db.","version":"1.1.0-meta.2","author":{"name":"Tim Allen","email":"tim@noblesamurai.com"},"license":"BSD","main":"index.js","scripts":{"coverage":"nyc -a -c -r html -r text npm test","pretest":"semistandard --env mocha","test":"mocha --recursive test","watch":"mocha --recursive --watch test","docs":"jsdoc2md index.js","start":"node index.js"},"homepage":"https://github.com/noblesamurai/amqp-log-to-pg","repository":{"type":"git","url":"git://github.com/noblesamurai/amqp-log-to-pg.git"},"bugs":{"url":"https://github.com/noblesamurai/amqp-log-to-pg/issues"},"engines":{"node":"8.x","npm":"6.x"},"dependencies":{"amqp-wrapper":"^5.5.0","debug":"^2.6.6","knex":"^0.15.2","pg":"^6.1.5"},"devDependencies":{"chai":"^3.5.0","dirty-chai":"^1.2.2","jsdoc-to-markdown":"~3.0.0","mocha":"^5.2.0","nyc":"^10.1.2","proxyquire":"^1.7.11","semistandard":"*","sinon":"^2.2.0"},"keywords":[],"nyc":{"exclude":["coverage","test"]},"readme":"# Amqp-log-to-pg [![Build Status](https://secure.travis-ci.org/noblesamurai/amqp-log-to-pg.png?branch=master)](http://travis-ci.org/noblesamurai/amqp-log-to-pg) [![NPM version](https://badge-me.herokuapp.com/api/npm/amqp-log-to-pg.png)](http://badges.enytc.com/for/npm/amqp-log-to-pg)\n\n> Logs from an amqp queue to a postgres db.\n\n## Purpose\nLog from an arbitrary amqp queue to a postgres database.  Records are assumed\nto be in JSON format.  They are insert into the specified postgres table as\n`jsonb`.\n\n## Usage\nSet the env vars accordingly:\n- `AMQP_URL`\n- `AMQP_EXCHANGE`\n- `AMQP_CONSUME` - name of queue to consume from (auto-created)\n- `AMQP_ROUTING_KEY` - routing key to bind to the queue at startup)\n- `DATABASE_URL` - destination db to write to\n- `DATABASE_TABLE_NAME`\n\n## Execution\n`node index.js` (with env vars above set)\n\n## License\n\nThe BSD License\n\nCopyright (c) 2017, Tim Allen\n\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n  list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice, this\n  list of conditions and the following disclaimer in the documentation and/or\n  other materials provided with the distribution.\n\n* Neither the name of the Tim Allen nor the names of its\n  contributors may be used to endorse or promote products derived from\n  this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\nANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n","readmeFilename":"README.md","gitHead":"e10fb879e65edcca9b279a06bcc6c8eda7306808","_id":"amqp-log-to-pg@1.1.0-meta.2","_npmVersion":"6.3.0","_nodeVersion":"8.11.2","_npmUser":{"name":"timlesallen","email":"allen.timothy.email@gmail.com"},"dist":{"integrity":"sha512-Nmwyi2gsDUptSfQh2p2a44iDTgIWfsyAgHdfruJNXcv0rFaogjsAoJ9GmNOkGD5V+PRLBjcFfxkqXS7pD73dOg==","shasum":"62688774cd7c3d45e7fb91a9d3877105c2693e60","tarball":"https://registry.npmjs.org/amqp-log-to-pg/-/amqp-log-to-pg-1.1.0-meta.2.tgz","fileCount":10,"unpackedSize":8048,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbZ9T3CRA9TVsSAnZWagAA97wP/02CA3Rbl+sN23UcyaFg\njNzl0hoF58SWmdvEqFrqorxMygKwBPoEjJojN3g3ZtZFIQW9PacC1u1K20d9\n4mb0Gqbs+46WvhNP5acOTmC+LE029WcsKky3IFtbT2lZ6fhToXNihr9yVa16\n+fStBBQBSkbUx5m8VaFDqKoNhHolV4viPObWPYWeLiqSv7wmOanBwAVC52NH\n0W+h2QQjZAAlDgIMrPNu+xW70bubKi0nja8ojerVCuHibAme64k9ZxxcEMBm\nYuRzy6PqnXSvsVZBOa/RgsCwg7O76F74f3ZEpaVn43XQNtaPagvmI9w1mMFk\n6xSCC+5UbkbQoEiPJUt3goNe5ssGWYs80toa6RVnlUR6ZbJOvbwoSiZ4AOyY\niwLoT02QR9wzFFPdOzknOUFVkyzPZJLrvRPG1FRdI5IL2klzSTu7VlMUYxHF\nEB9Rv0tlvJsOikTWNFZoLYEBp8SSqrpKmlxQwsrOsCpskjzQlpQWDTxevmkb\nyF4pjJRLnnkhHvwd2G2SxkljC+RKjGtokdGpglx5AOzq6fDuodkGsl7DN7tp\nMl9ju7uuUj6Ug9nvkeW0XugfCl8TS3rD2Ebh+jVty8CF1p1jLIhTCXLXlgRD\njmF1f5w9l45mAzVczR/zRr5OlmvAyhjKXFi2zj4jSSkcgX7qquzid1OaW2ku\nQf6D\r\n=n9tn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDgg8HAwKABQClOAj0JUetO4ssh5u57F/1POxsrR1jmPAiEA6fEOVC9E3oc5N6gg0fEywrvTjU3Yi4s1nr0umxNFKto="}]},"maintainers":[{"name":"timlesallen","email":"allen.timothy.email@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amqp-log-to-pg_1.1.0-meta.2_1533531382850_0.7678661489463474"},"_hasShrinkwrap":false},"1.1.0-meta.3":{"name":"amqp-log-to-pg","description":"Logs from an amqp queue to a db.","version":"1.1.0-meta.3","author":{"name":"Tim Allen","email":"tim@noblesamurai.com"},"license":"BSD","main":"index.js","scripts":{"coverage":"nyc -a -c -r html -r text npm test","pretest":"semistandard --env mocha","test":"mocha --recursive test","watch":"mocha --recursive --watch test","docs":"jsdoc2md index.js","start":"node index.js"},"homepage":"https://github.com/noblesamurai/amqp-log-to-pg","repository":{"type":"git","url":"git://github.com/noblesamurai/amqp-log-to-pg.git"},"bugs":{"url":"https://github.com/noblesamurai/amqp-log-to-pg/issues"},"engines":{"node":"8.x","npm":"6.x"},"dependencies":{"amqp-wrapper":"^5.5.0","debug":"^2.6.6","knex":"^0.15.2","pg":"^6.1.5"},"devDependencies":{"chai":"^3.5.0","dirty-chai":"^1.2.2","jsdoc-to-markdown":"~3.0.0","mocha":"^5.2.0","nyc":"^10.1.2","proxyquire":"^1.7.11","semistandard":"*","sinon":"^2.2.0"},"keywords":[],"nyc":{"exclude":["coverage","test"]},"readme":"# Amqp-log-to-pg [![Build Status](https://secure.travis-ci.org/noblesamurai/amqp-log-to-pg.png?branch=master)](http://travis-ci.org/noblesamurai/amqp-log-to-pg) [![NPM version](https://badge-me.herokuapp.com/api/npm/amqp-log-to-pg.png)](http://badges.enytc.com/for/npm/amqp-log-to-pg)\n\n> Logs from an amqp queue to a postgres db.\n\n## Purpose\nLog from an arbitrary amqp queue to a postgres database.  Records are assumed\nto be in JSON format.  They are insert into the specified postgres table as\n`jsonb`.\n\n## Usage\nSet the env vars accordingly:\n- `AMQP_URL`\n- `AMQP_EXCHANGE`\n- `AMQP_CONSUME` - name of queue to consume from (auto-created)\n- `AMQP_ROUTING_KEY` - routing key to bind to the queue at startup)\n- `DATABASE_URL` - destination db to write to\n- `DATABASE_TABLE_NAME`\n\n## Execution\n`node index.js` (with env vars above set)\n\n## License\n\nThe BSD License\n\nCopyright (c) 2017, Tim Allen\n\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n  list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice, this\n  list of conditions and the following disclaimer in the documentation and/or\n  other materials provided with the distribution.\n\n* Neither the name of the Tim Allen nor the names of its\n  contributors may be used to endorse or promote products derived from\n  this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\nANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n","readmeFilename":"README.md","gitHead":"7b3b67d843d6763c80c7a7184828c33358eb90d0","_id":"amqp-log-to-pg@1.1.0-meta.3","_npmVersion":"6.3.0","_nodeVersion":"8.11.2","_npmUser":{"name":"timlesallen","email":"allen.timothy.email@gmail.com"},"dist":{"integrity":"sha512-/+HJMqVaweQYmoGuXkkVhc2FkzPnCMf43XVAtb8dm4ktaMbH/Ijfkt3Avu9cI0QK92ac2sm6Ng7iVkz4BH8u4A==","shasum":"7fd85fa2cdbcc6867c033a01b4a426506bbd7345","tarball":"https://registry.npmjs.org/amqp-log-to-pg/-/amqp-log-to-pg-1.1.0-meta.3.tgz","fileCount":10,"unpackedSize":8070,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbZ9n+CRA9TVsSAnZWagAAEPsP/3OxMeFm2L2e8UdcU5Ad\n96iGNe2EwWBTlGps6KlrA1ScsJHzZEx9wytw3W451h8+VpwAtVCvgZUouOgz\nNQXzKsM74CAvMmJLEV4ERVmEZ+ZmQYKVtooY5mBN6ew3l7DkRY927bzv/zkr\ncY6VRVbC+EIbD3j8qy3G8LeMe7Jxf9ZGYnsTq3QhZqVKGIgdm3jOcKFPR+c7\nkbmViqPIjF5lX6Jai+pcyO163bw8YUYg3Rny3K4pu9uMZduBqFVcQtpo6wX/\nAITwpa/EXU5iiyskzI4NskLLZNwh+l60U038m39l0uFZ869BXJF9Fl/zGqwX\n7ksFdWMk6k0WhntXIRa6Ce9IiS6nhjt41GXO9zCdS5mwyH1Gt/BqjF756bZh\nXJaJvB06YedCAR/SoxyKuQElQzsPc/cOME4sX7h00WW4YoRpEucDaxDzDaZF\n9InmgpSBcSnbdCB3r0GAPMEAc2BtA1qImCTk/gxAZ5b1Tki3a5HrQiK+NNl+\nwksh0kQh6Q54E3NHGjNyqvM8Bv3pZ772BvpRayLUvqgjjCEYtmmRAdUI7obc\npzkc6kJ6qlpjA/a7zA7EUMFUCJpXleoxY3s2liP9A+P9V2a6MW7mzZkReIum\nU4wNbU9JQSJlA95zinM8wdZPRkfLc+/JAVN8KtE6t3EMisd16pPhxEE8tUDr\nSeWd\r\n=XGBx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFK5KYETNhMBtiYeKQ8UF2dM+EuzRiSoD/UvH1V2SDu4AiAa47dw567G4mNKkvBgjZrRQV1TxGZmvsFEgzRqmUr+dQ=="}]},"maintainers":[{"name":"timlesallen","email":"allen.timothy.email@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amqp-log-to-pg_1.1.0-meta.3_1533532669895_0.7955600445388176"},"_hasShrinkwrap":false},"1.1.0":{"name":"amqp-log-to-pg","description":"Logs from an amqp queue to a db.","version":"1.1.0","author":{"name":"Tim Allen","email":"tim@noblesamurai.com"},"license":"BSD","main":"index.js","scripts":{"coverage":"nyc -a -c -r html -r text npm test","pretest":"semistandard --env mocha","test":"mocha --recursive test","watch":"mocha --recursive --watch test","docs":"jsdoc2md index.js","start":"node index.js"},"homepage":"https://github.com/noblesamurai/amqp-log-to-pg","repository":{"type":"git","url":"git://github.com/noblesamurai/amqp-log-to-pg.git"},"bugs":{"url":"https://github.com/noblesamurai/amqp-log-to-pg/issues"},"engines":{"node":"8.x","npm":"6.x"},"dependencies":{"amqp-wrapper":"^5.5.0","debug":"^2.6.6","knex":"^0.15.2","pg":"^6.1.5"},"devDependencies":{"chai":"^3.5.0","dirty-chai":"^1.2.2","jsdoc-to-markdown":"~3.0.0","mocha":"^5.2.0","nyc":"^12.0.2","proxyquire":"^1.7.11","semistandard":"*","sinon":"^2.2.0"},"keywords":[],"nyc":{"exclude":["coverage","test"]},"semistandard":{"env":["mocha"]},"gitHead":"ff8eb7cf043112ffb84b8fef49f26dbfc3c6c6a9","_id":"amqp-log-to-pg@1.1.0","_npmVersion":"6.5.0","_nodeVersion":"10.4.0","_npmUser":{"name":"timlesallen","email":"allen.timothy.email@gmail.com"},"dist":{"integrity":"sha512-2wN5+434atUnViGOQUoDn4Jy3bKCrBlnpuCwYEVw/JyiN6JmHc2vCAUVqpi6yiH3RncY7rdLAmt3GKDLv9DIyA==","shasum":"9f33f1d563e73b5e4371ad390e57b7fbb5f49ff2","tarball":"https://registry.npmjs.org/amqp-log-to-pg/-/amqp-log-to-pg-1.1.0.tgz","fileCount":12,"unpackedSize":8795,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcEZWOCRA9TVsSAnZWagAATZsP/jkcZj9lmsdEtI3YPWjW\nfHg1l9Cp53OYoLEDic7eMAEdI7pIm1mqrhrANbN+YEJGfB9S32Bt8GyEs3hK\nSStOJTUXHRSFsBXiAfc0JkgYXr1ObhfNM+6ToatOW8R+X0DJLckQTDcjYVrq\nwWlzGcOEfxeybVv4UooM1kiDrvGA3t16P1KP61PfUki0TViuRm2qAOmX/44r\n8IcNlZJHIXX3J6ZegzGe4UKfisJvttp2L1rOKoznadVObOLN2hQRCQ8d0o6F\nGAHwIHXOeBe1l/R5w2VlOuLedOj22IBlkV3znwjbEsC6ccmabuEhBar75vqm\njGG3rqKr+03Q26N85gZLDw1Hcosr3AyBnr2Sw1tqjMLUD24B1Z2Wr6pTth9R\nwa48M2dzY7eUpJ9yTAA/qTkwtBDivkVdAsK2mBRBVRIoJE0gs4s+daSl+xFr\nEE2S9u8j3I4cQ3gZVAbk1bZPrP5uLnLTD42NwPm6osg4iwYUJ7Qc2SpF5raF\n+cTsc580TqYUkClTG2h/rMTTFoZ+vvjJLzOSyiphHCQLuM2glv0OfZd9gP/t\nko6IuuG9sh5I4t/z+wuTVwx/aLiPqx/nz/miZZkfQLnPfb/qLJWQaXNowraw\nWxWiJbROOwe/mp6Q9FHiiosrA+p1LUPNATmp1uZmOWeTFi9xckPal0t3evWv\nGk31\r\n=fSgT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCH6FCggAbglch4w6YTgSpf2/Xl9HaL6rWjvJ8tPd6fwQIhAKHpKxAV/symyB8m/hpn5ty1/Uzf+6MSyGMo+LG/V0Te"}]},"maintainers":[{"email":"andrew@noblesamurai.com","name":"aeh"},{"email":"eugene@noblesamurai.com","name":"eugeneware"},{"email":"jeff@noblesamurai.com","name":"jeffroh81"},{"email":"npm@noblesamurai.com","name":"noblesamurai"},{"email":"allen.timothy.email@gmail.com","name":"timlesallen"},{"email":"tom@noblesamurai.com","name":"tomns"},{"email":"wayne@noblesamurai.com","name":"wayno"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amqp-log-to-pg_1.1.0_1544656269930_0.04408805649827263"},"_hasShrinkwrap":false},"1.2.0-update.0":{"name":"amqp-log-to-pg","description":"Logs from an amqp queue to a db.","version":"1.2.0-update.0","author":{"name":"Tim Allen","email":"tim@noblesamurai.com"},"license":"BSD","main":"index.js","scripts":{"coverage":"nyc -a -c -r html -r text npm test","pretest":"semistandard --env mocha","test":"mocha --recursive test","watch":"mocha --recursive --watch test","docs":"jsdoc2md index.js","start":"node index.js"},"homepage":"https://github.com/noblesamurai/amqp-log-to-pg","repository":{"type":"git","url":"git://github.com/noblesamurai/amqp-log-to-pg.git"},"bugs":{"url":"https://github.com/noblesamurai/amqp-log-to-pg/issues"},"engines":{"node":">=10","npm":"6.x"},"dependencies":{"amqp-wrapper":"^5.5.0","debug":"^2.6.6","knex":"^0.21.5","pg":"^6.1.5"},"devDependencies":{"chai":"^3.5.0","dirty-chai":"^1.2.2","jsdoc-to-markdown":"^6.0.1","mocha":"^8.1.3","nyc":"^15.1.0","proxyquire":"^1.7.11","semistandard":"^14.2.3","sinon":"^9.0.3"},"keywords":[],"nyc":{"exclude":["coverage","test"]},"semistandard":{"env":["mocha"]},"readme":"# amqp-log-to-pg\n> Logs from an amqp queue to a postgres db.\n\n## Purpose\nLog from an arbitrary amqp queue to a postgres database.  Records are assumed\nto be in JSON format.  They are insert into the specified postgres table as\n`jsonb`.\n\n## Usage\n\nSet the env vars:\n- `AMQP_URL` - e.g. `amqp://myhost/blah`\n- `AMQP_EXCHANGE` - amqp exchange name\n- `AMQP_CONSUME` - name of queue to consume from (auto-created)\n- `AMQP_ROUTING_KEY` - routing key to bind to the queue at startup)\n- `DATABASE_URL` - destination db to write to\n- `DATABASE_TABLE_NAME` - e.g. `my_logs`\n\nThere are two possible ways to use it.\nOnce started up, it listens on the queue defined above and writes the json\npayload it receives to the db (one row per payload).\n\n\n### By checking out the repo\n\nI am using it on heroku.  I check out the repo and push it to heroku.\nTo execute:\n`node index.js` (with env vars above set)\n\n### As a module\n\n```\n$ npm install amqp-log-to-pg\n```\n```js\nconst logger = require('amqp-log-to-pg');\nlogger.main(); // runs it\n```\n\n## License\n\nThe BSD License\n\nCopyright (c) 2017, Tim Allen\n\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n  list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice, this\n  list of conditions and the following disclaimer in the documentation and/or\n  other materials provided with the distribution.\n\n* Neither the name of the Tim Allen nor the names of its\n  contributors may be used to endorse or promote products derived from\n  this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\nANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n","readmeFilename":"README.md","gitHead":"8e6c576578b0576ac4986f0e1cded001e19e09e3","_id":"amqp-log-to-pg@1.2.0-update.0","_nodeVersion":"12.18.3","_npmVersion":"6.14.8","dist":{"integrity":"sha512-uLMYBJdWavn8o7H1k4Kur2SDd2UJwIdKJwuQISdtLtcAyGR1VcuEQF2/YRZNInCmkJL5LTvlJzUxBqKDpObRbw==","shasum":"162144996b003f10570bd4388562404665e02c93","tarball":"https://registry.npmjs.org/amqp-log-to-pg/-/amqp-log-to-pg-1.2.0-update.0.tgz","fileCount":12,"unpackedSize":8823,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUd4jCRA9TVsSAnZWagAA6S8QAJth/DQk5q/tqp8vgEYv\nXAq7OoA0DnThhsZ1oHN6GQ3zlhMyctu2uZ9k+8ubKtEqKBO3Pt82gPjaBj6A\nz262eM4I37Ifr8TjMX2Kc6ISVQj47cs2Uxoh3gp5MmWiRY/popxoR6DPHTl7\njGuFy7Ea5VMlkyn00mAXXpVgbU0YK5yOv5arc05mqnOEvdtVbcWxtrDJwj70\nb6A/V4J2gFDhN1pHZwtk4ckxdv51DFin01ij3laMDxSiPHYkM1XWEv5fhlQE\nNyl+XUvIxIZCQDMBKH0oOTojtCrXITJuOunaEdOdw4wDEVBv0RxwS8BnxsBA\nBowZcs1TnQHs8EsdLphpOPVwtJM0MtfVkws/LtYYriJ1mz+ypK1VWrQA0UMt\nF8TxwEYDhiDVIrc9SA9ZkQbVnhgnJcLJ7fT8lmMMnE5kYgnFM5cXwcfo8d7/\nZLgHNC4IEmJCgm12DNe+yiTSpp+YXTEr8N39qMRg8IRA6eH19Ux7CWMBISpG\nEX8nRbi8W122U1cBbUEh08uAUR29tFuCeBwI3bCr2y0Qdd+xdlS/ssWCJ+67\nuPiD22XbdN5Uoh3iFz6uXeqVl7eNbd3qtxUyxFG73ivvb30TFZ4Ztx/tD4iy\niEsjZyrTZpxK4rNV2XWMu1Er1yynzKRlQaglX4yR9QACjFqyAYML/u5kpDU1\nIV0g\r\n=IXtT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDg/jjoX/PA1UZznKtPj+kmab8BQcGzFejT9pxE/MMMIQIgf1yrICIPo3Gydf8R+RakWDvenunmMd+ZlyScYzMh4QA="}]},"maintainers":[{"email":"andrew@noblesamurai.com","name":"aeh"},{"email":"eugene@noblesamurai.com","name":"eugeneware"},{"email":"jeff@noblesamurai.com","name":"jeffroh81"},{"email":"npm@noblesamurai.com","name":"noblesamurai"},{"email":"allen.timothy.email@gmail.com","name":"timlesallen"},{"email":"tom@noblesamurai.com","name":"tomns"},{"email":"wayne@noblesamurai.com","name":"wayno"}],"_npmUser":{"name":"timlesallen","email":"allen.timothy.email@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amqp-log-to-pg_1.2.0-update.0_1599200802741_0.5117728291670156"},"_hasShrinkwrap":false},"1.2.0-update.1":{"name":"amqp-log-to-pg","description":"Logs from an amqp queue to a db.","version":"1.2.0-update.1","author":{"name":"Tim Allen","email":"tim@noblesamurai.com"},"license":"BSD","main":"src/index","scripts":{"coverage":"nyc -a -c -r html -r text npm test","pretest":"xo","test":"mocha --recursive test","watch":"mocha --recursive --watch test","docs":"jsdoc2md index.js","start":"node index.js"},"homepage":"https://github.com/noblesamurai/amqp-log-to-pg","repository":{"type":"git","url":"git://github.com/noblesamurai/amqp-log-to-pg.git"},"bugs":{"url":"https://github.com/noblesamurai/amqp-log-to-pg/issues"},"engines":{"node":">=10","npm":"6.x"},"dependencies":{"amqp-wrapper":"^5.5.0","debug":"^2.6.6","env-var":"^6.3.0","knex":"^0.21.5","ow":"^0.17.0","pg":"^8.3.3"},"devDependencies":{"chai":"^3.5.0","chai-as-promised":"^7.1.1","dirty-chai":"^1.2.2","eslint-config-semistandard":"^15.0.1","eslint-config-standard":"^14.1.1","eslint-plugin-node":"^11.1.0","eslint-plugin-standard":"^4.0.1","jsdoc-to-markdown":"^6.0.1","mocha":"^8.1.3","nyc":"^15.1.0","proxyquire":"^1.7.11","sinon":"^9.0.3","xo":"^0.33.1"},"keywords":[],"nyc":{"exclude":["coverage","test"]},"semistandard":{"env":["mocha"]},"xo":{"env":"mocha","extends":"semistandard"},"readme":"# amqp-log-to-pg\n> Logs from an amqp queue to a postgres db.\n\n## Purpose\nLog from an arbitrary amqp queue to a postgres database.  Records are assumed\nto be in JSON format.  They are insert into the specified postgres table as\n`jsonb`.\n\n## Usage\n\nThere are two possible ways to use it.\nOnce started up, it listens on the specified queue and writes the json\npayload it receives to the db (one row per payload).\n\n### Config\n\nSet the env vars (if using the repo directly).\n- `AMQP_URL` - e.g. `amqp://myhost/blah`\n- `AMQP_EXCHANGE` - amqp exchange name\n- `AMQP_CONSUME` - name of queue to consume from (auto-created)\n- `AMQP_ROUTING_KEY` - routing key to bind to the queue at startup)\n- `DATABASE_URL` - destination db to write to\n- `DATABASE_TABLE_NAME` - e.g. `my_logs`\n\nor else:\n\n```js\nconst config = {\n  db: 'postgres://user:password@postgreshost/database',\n  amqp: {\n    url: 'amqp://user:password@amqphost/vhost',\n    exchange: 'exchange-name',\n    queue: {\n      name: 'queue-name',\n      routingKey: 'will-bind-queue-to-this'\n    })\n  }),\n  tableName: 'your_table_name'\n}\n```\n\n\n### By checking out the repo\n\nIt's set up to run out of the box on heroku.  You can check out the repo and push it to heroku.\n`Procfile` is set to run `node src/index`.  But you can easily run it using docker or whatever.\n(Make sure you set the env vars for this way of running.)\n\n### As a module\n\n```\n$ npm install amqp-log-to-pg\n```\n```js\n(async => {\n  const { init, consume, shutdown } = require('amqp-log-to-pg');\n  const config = { /* see above for config format */ };\n\n  await init(config); // connects to db, connects to rabbitmq, run unrun migrations\n  consume(); // starts operation\n  /*...*/m\n  await shtudown(); // close connections to db + rabbitmq\n})();\n```\n\n## License\n\nThe BSD License\n\nCopyright (c) 2017, Tim Allen\n\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n  list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice, this\n  list of conditions and the following disclaimer in the documentation and/or\n  other materials provided with the distribution.\n\n* Neither the name of the Tim Allen nor the names of its\n  contributors may be used to endorse or promote products derived from\n  this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\nANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n","readmeFilename":"README.md","gitHead":"24f3274d055a48eebc517adf234420e3dcc150dc","_id":"amqp-log-to-pg@1.2.0-update.1","_nodeVersion":"12.18.3","_npmVersion":"6.14.8","dist":{"integrity":"sha512-jlE56+bpgV3kCsfx/3yb2vG9jNeX0U6qRcP/pc1MKbM3svIkyLKsjZX4VBoXl1TeEWuMyoA8sNqJ5b5k5DLCAg==","shasum":"06444a592c719be371edc2a20c7a71b73dead203","tarball":"https://registry.npmjs.org/amqp-log-to-pg/-/amqp-log-to-pg-1.2.0-update.1.tgz","fileCount":18,"unpackedSize":15158,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfVcjfCRA9TVsSAnZWagAANiAP/2o38KPRMRMjy5VS+dPa\nA4oDFZPsImqovvEYpy51IUm9D6lsYIgfQKtYpRXk8rknaElaKI8XcwFdkvNH\nQeuh5lot9gLb1UfxcpPky6AVaotDKeZSIuHxq6Q4fcZhHqnf/yHHHOjcXfnn\nF88lyTPjV5lo0HThREBH2+f0SQtACuDUSxFc9udttgkCF5X6W2EluzW/6AlV\nIJJoQDRBUbE+FIpbhhCvJwJimm4Y8HPvBukzVVZaec9j7dxojq/bjLPobEbQ\ncyBQpOai9NDoCoPy707BqK8wevf2xDLmYSc51m5/V/TNHqZLU7m+gC91WG6h\njY9dk39ZFWAyQaULWxQ+K4gbihzKP6qGwRVLpaGEURqZLQu50ee+VCJiNpAk\nR4uOMzJdFRsuZvo9s0NdeeaD0/rI0jKHKSuT76uoeR3+TW5jwFMq+99U0OH7\nsbGTEZ3V7rCBdg0cgGVR5UEc/XfwLpkWE2EegBw6flpc1e7zOrXyl7By7oTJ\n8BADXF2Pa9pHG607LLpf6zggBYWxgLzUO/U8FVnXbd0EvK6cUmyIws01nXqz\nw6IcddKMs7k+xOT2lZN9bgtAFTOkKzOxBCvzptZoZGeKB72fg8cwPv+sEwyY\nShG+Tnh3/8d+pwfP4idpyK7KLC3UUUf7moqq7X/DZHWrLjenzVJXOCc1BwN2\nyof3\r\n=oeyR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGtgoDcAIymbvqVMb/AYD01KV6sG29uiU/GIuToc3pH0AiEAt3Yrapf5go0RUHjFAoMbeOkDxubQ+V40qeIBebOoZpw="}]},"maintainers":[{"email":"andrew@noblesamurai.com","name":"aeh"},{"email":"eugene@noblesamurai.com","name":"eugeneware"},{"email":"jeff@noblesamurai.com","name":"jeffroh81"},{"email":"npm@noblesamurai.com","name":"noblesamurai"},{"email":"allen.timothy.email@gmail.com","name":"timlesallen"},{"email":"tom@noblesamurai.com","name":"tomns"},{"email":"wayne@noblesamurai.com","name":"wayno"}],"_npmUser":{"name":"timlesallen","email":"allen.timothy.email@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amqp-log-to-pg_1.2.0-update.1_1599457502827_0.8080223079656643"},"_hasShrinkwrap":false},"1.2.0-update.2":{"name":"amqp-log-to-pg","description":"Logs from an amqp queue to a db.","version":"1.2.0-update.2","author":{"name":"Tim Allen","email":"tim@noblesamurai.com"},"license":"BSD","main":"src/index","scripts":{"coverage":"nyc -a -c -r html -r text npm test","pretest":"xo","test":"mocha --recursive test","watch":"mocha --recursive --watch test","docs":"jsdoc2md index.js","start":"node index.js"},"homepage":"https://github.com/noblesamurai/amqp-log-to-pg","repository":{"type":"git","url":"git://github.com/noblesamurai/amqp-log-to-pg.git"},"bugs":{"url":"https://github.com/noblesamurai/amqp-log-to-pg/issues"},"engines":{"node":">=10","npm":"6.x"},"dependencies":{"amqp-wrapper":"^5.5.0","debug":"^2.6.6","env-var":"^6.3.0","knex":"^0.21.5","ow":"^0.17.0","pg":"^8.3.3"},"devDependencies":{"chai":"^3.5.0","chai-as-promised":"^7.1.1","dirty-chai":"^1.2.2","eslint-config-semistandard":"^15.0.1","eslint-config-standard":"^14.1.1","eslint-plugin-node":"^11.1.0","eslint-plugin-standard":"^4.0.1","jsdoc-to-markdown":"^6.0.1","mocha":"^8.1.3","nyc":"^15.1.0","proxyquire":"^1.7.11","sinon":"^9.0.3","xo":"^0.33.1"},"keywords":[],"nyc":{"exclude":["coverage","test"]},"semistandard":{"env":["mocha"]},"xo":{"env":"mocha","extends":"semistandard"},"readme":"# amqp-log-to-pg\n> Logs from an amqp queue to a postgres db.\n\n## Purpose\nLog from an arbitrary amqp queue to a postgres database.  Records are assumed\nto be in JSON format.  They are insert into the specified postgres table as\n`jsonb`.\n\n## Usage\n\nThere are two possible ways to use it.\nOnce started up, it listens on the specified queue and writes the json\npayload it receives to the db (one row per payload).\n\n### Config\n\nSet the env vars (if using the repo directly).\n- `AMQP_URL` - e.g. `amqp://myhost/blah`\n- `AMQP_EXCHANGE` - amqp exchange name\n- `AMQP_CONSUME` - name of queue to consume from (auto-created)\n- `AMQP_ROUTING_KEY` - routing key to bind to the queue at startup)\n- `DATABASE_URL` - destination db to write to\n- `DATABASE_TABLE_NAME` - e.g. `my_logs`\n\nor else:\n\n```js\nconst config = {\n  db: 'postgres://user:password@postgreshost/database',\n  amqp: {\n    url: 'amqp://user:password@amqphost/vhost',\n    exchange: 'exchange-name',\n    queue: {\n      name: 'queue-name',\n      routingKey: 'will-bind-queue-to-this'\n    })\n  }),\n  tableName: 'your_table_name'\n}\n```\n\n\n### By checking out the repo\n\nIt's set up to run out of the box on heroku.  You can check out the repo and push it to heroku.\n`Procfile` is set to run `node src/index`.  But you can easily run it using docker or whatever.\n(Make sure you set the env vars for this way of running.)\n\n### As a module\n\n```\n$ npm install amqp-log-to-pg\n```\n```js\n(async => {\n  const { init, consume, shutdown } = require('amqp-log-to-pg');\n  const config = { /* see above for config format */ };\n\n  await init(config); // connects to db, connects to rabbitmq, run unrun migrations\n  consume(); // starts operation\n  /*...*/m\n  await shtudown(); // close connections to db + rabbitmq\n})();\n```\n\n## License\n\nThe BSD License\n\nCopyright (c) 2017, Tim Allen\n\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n  list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice, this\n  list of conditions and the following disclaimer in the documentation and/or\n  other materials provided with the distribution.\n\n* Neither the name of the Tim Allen nor the names of its\n  contributors may be used to endorse or promote products derived from\n  this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\nANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n","readmeFilename":"README.md","gitHead":"5c87f8f2436164d42f3173a76433c795adc8f703","_id":"amqp-log-to-pg@1.2.0-update.2","_nodeVersion":"12.18.3","_npmVersion":"6.14.8","dist":{"integrity":"sha512-aUXoqmkI/o/49eJ0dW9GykxzvPdZpRhABAM8bHGE9E3FzWa0L0FrnWQQXr8/eD0vr3Iw2Ggoy2er+O5PXZDpLg==","shasum":"8fb054a2f3f3be30b6a6060c558f253775c0ca7b","tarball":"https://registry.npmjs.org/amqp-log-to-pg/-/amqp-log-to-pg-1.2.0-update.2.tgz","fileCount":18,"unpackedSize":15158,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfVcv0CRA9TVsSAnZWagAAUl4P/Rf3lfpDKAKbWmk4JcG5\nyPncPcI/ridcb3q0LJ3KhIVoHLjmM43tNblzefDqLrt9q6G6SYLDeYjqkxqe\nBNWMBG28B4oXErhYQS7tCxD+cAGGq/OEKS/mM8k3YP2OCEuOeTGrjP945KAH\nmrngKbApSHbnwje0g5TEhqDaYpPbP6eJ1CISR6ww9nGjg1ySZsBZWYe6qkFz\nsOQK4XKL8O6kTbHg4UIBi93C8Wxg1pZBaVLTsZzv/iM52NG6i5LU2r4FmY5J\nV3AYAjlqBCJXqn+KYPJbCupHvatOXL2ZYhSDJU8YdqcxmlCd86oONaDsX1y2\nQGzmM9egHduqLcZem5/wmuz1mZU6owO/h+PfRwwc3TCWdBfsvo15oE1GBqd4\nr2uOEdL/C3rF7WUG3pcif0JWHIjBvSMrj4Uoav6JfPM9y1nlbFQ+naI7rio/\nrCbHoG88JwNafLJz3CycqWY3tSP6vQwv1yFjZTHqqMIQvEXae9Nfpb4jcpN1\njpxtDWOaREpg13KvBEYuseWHQpTWtIHRAKdbYzg4pY8QfIoEuxJocKhFG5OK\nvlCF7m8SJOkQjq7D9mf9lTYEw8LelINMdLeOJYz09KwrLV1oHnwb21cW6C8H\nJRyi2G4JkPJ5CsANZs2QdOMKBMagzMMab0J5MsiN83wLaAhjBIBTe4GVXbVN\n5BKD\r\n=Qqba\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAdHfMmrEXeg/iNaCJ6lDlThWiYYaw48CntlFzRJrNOdAiAUiGvjVNS+lBSoNOxYKK5dAyzcWNxRzSSLvP283yy/rQ=="}]},"maintainers":[{"email":"andrew@noblesamurai.com","name":"aeh"},{"email":"eugene@noblesamurai.com","name":"eugeneware"},{"email":"jeff@noblesamurai.com","name":"jeffroh81"},{"email":"npm@noblesamurai.com","name":"noblesamurai"},{"email":"allen.timothy.email@gmail.com","name":"timlesallen"},{"email":"tom@noblesamurai.com","name":"tomns"},{"email":"wayne@noblesamurai.com","name":"wayno"}],"_npmUser":{"name":"timlesallen","email":"allen.timothy.email@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amqp-log-to-pg_1.2.0-update.2_1599458291653_0.6576160356591223"},"_hasShrinkwrap":false},"2.0.0-update.0":{"name":"amqp-log-to-pg","description":"Logs from an amqp queue to a db.","version":"2.0.0-update.0","author":{"name":"Tim Allen","email":"tim@noblesamurai.com"},"license":"BSD","main":"src/index","scripts":{"coverage":"nyc -a -c -r html -r text npm test","pretest":"xo","test":"mocha --recursive test","watch":"mocha --recursive --watch test","docs":"jsdoc2md index.js","start":"node index.js"},"homepage":"https://github.com/noblesamurai/amqp-log-to-pg","repository":{"type":"git","url":"git://github.com/noblesamurai/amqp-log-to-pg.git"},"bugs":{"url":"https://github.com/noblesamurai/amqp-log-to-pg/issues"},"engines":{"node":">=10","npm":"6.x"},"dependencies":{"amqp-wrapper":"^5.5.0","debug":"^2.6.6","env-var":"^6.3.0","knex":"^0.21.5","ow":"^0.17.0","pg":"^8.3.3"},"devDependencies":{"chai":"^3.5.0","chai-as-promised":"^7.1.1","dirty-chai":"^1.2.2","eslint-config-semistandard":"^15.0.1","eslint-config-standard":"^14.1.1","eslint-plugin-node":"^11.1.0","eslint-plugin-standard":"^4.0.1","jsdoc-to-markdown":"^6.0.1","mocha":"^8.1.3","nyc":"^15.1.0","proxyquire":"^1.7.11","sinon":"^9.0.3","xo":"^0.33.1"},"keywords":[],"nyc":{"exclude":["coverage","test"]},"semistandard":{"env":["mocha"]},"xo":{"env":"mocha","extends":"semistandard"},"readme":"# amqp-log-to-pg\n> Logs from an amqp queue to a postgres db.\n\n## Purpose\nLog from an arbitrary amqp queue to a postgres database.  Records are assumed\nto be in JSON format.  They are insert into the specified postgres table as\n`jsonb`.\n\n## Usage\n\nThere are two possible ways to use it.\nOnce started up, it listens on the specified queue and writes the json\npayload it receives to the db (one row per payload).\n\n### Config\n\nSet the env vars (if using the repo directly).\n- `AMQP_URL` - e.g. `amqp://myhost/blah`\n- `AMQP_EXCHANGE` - amqp exchange name\n- `AMQP_CONSUME` - name of queue to consume from (auto-created)\n- `AMQP_ROUTING_KEY` - routing key to bind to the queue at startup)\n- `DATABASE_URL` - destination db to write to\n- `DATABASE_TABLE_NAME` - e.g. `my_logs`\n\nor else:\n\n```js\nconst config = {\n  db: 'postgres://user:password@postgreshost/database',\n  amqp: {\n    url: 'amqp://user:password@amqphost/vhost',\n    exchange: 'exchange-name',\n    queue: {\n      name: 'queue-name',\n      routingKey: 'will-bind-queue-to-this'\n    })\n  }),\n  tableName: 'your_table_name'\n}\n```\n\n\n### By checking out the repo\n\nIt's set up to run out of the box on heroku.  You can check out the repo and push it to heroku.\n`Procfile` is set to run `node src/index`.  But you can easily run it using docker or whatever.\n(Make sure you set the env vars for this way of running.)\n\n### As a module\n\n```\n$ npm install amqp-log-to-pg\n```\n```js\n(async => {\n  const { init, consume, shutdown } = require('amqp-log-to-pg');\n  const config = { /* see above for config format */ };\n\n  await init(config); // connects to db, connects to rabbitmq, run unrun migrations\n  consume(); // starts operation\n  /*...*/m\n  await shtudown(); // close connections to db + rabbitmq\n})();\n```\n\n## License\n\nThe BSD License\n\nCopyright (c) 2017, Tim Allen\n\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n  list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice, this\n  list of conditions and the following disclaimer in the documentation and/or\n  other materials provided with the distribution.\n\n* Neither the name of the Tim Allen nor the names of its\n  contributors may be used to endorse or promote products derived from\n  this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\nANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n","readmeFilename":"README.md","gitHead":"1b5f8b760b78ecd5eb9ca080c79848e8efd9408c","_id":"amqp-log-to-pg@2.0.0-update.0","_nodeVersion":"12.18.3","_npmVersion":"6.14.8","dist":{"integrity":"sha512-GMdXN13QJjKHNYy+PVP7DAyZcExKKutyMVgazBnxRkSrxoZq7yEysins6NY6O6obZIDcb+e05dSatHVZHNAFnw==","shasum":"369d1bc17fa771444722dd0017a78ac3bb226bad","tarball":"https://registry.npmjs.org/amqp-log-to-pg/-/amqp-log-to-pg-2.0.0-update.0.tgz","fileCount":18,"unpackedSize":15158,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfVcxLCRA9TVsSAnZWagAAdAEP/ji+6Yy3XFX+ALaUQTy7\nToRgTiEppI5lCEresTdSyoMZUy4lLYw1YoqgEoRjFgM6cdSHGoqGiceKjKRp\n1Lg91y7H93c2WOWPqrxt2Xmd/pMMwKL4/NvAPjil+6n82u9sbKc04ZFDtigx\nBAYFUOBjvNoGGHmMiRKNS0PH7sI9qNYtLMyNLMrejeyLJBy9zT044FW/sjeO\ntNWwiIJ1MLC5cOI1P8bQwZ5vln2ZSUeRdJOHvQRjEJnLwrq+efylksidhmq+\nsc2bgt4zTcJwYfG5VZBhZjvPwa/jDjKlWgcDs+/7PU86Nfef8Y5YAUC0/EwN\nWWS8oe89YBQcYThlrxxTQjxUC5J0ogQ7ajRuqPGqF0II2xNmuRzcmb+naYYA\nSzNOFT16rDpd91M1Mox5JF3DzyPq3Bgdg5QWtws7pQBR5m67TbAGKpkWjwgB\nwT1haCOzmOSglGmxnmwOuTzzY4nKjSioyAX7WSaTakcIS3d9sqCa+weMhzFX\ndsLLZQWZ77k8H613GBddbVhNUH/wtXne1gbukcgMkkr6wvf98g8wuLUBcoDH\nFTZ5KPprYzOR+9GKdwJ9et4HugxcucFLJpoZ0/xJ/H/iqGApmt9HRD6FYqdW\nTKffhs7mIYr5MIHpdId+87mbqk3yp5qYzIGlaIn8i+WVh9zl24i3dJBb0qxr\nAVO5\r\n=Hb8+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDArF04LQymKD5/I5JB2ONab5qmwGTKRQZE4oJQj3fCggIhAIRx+BTIsS8bM+pWf0yrFi1L4ReEVfs2MqyrwUiXF3ye"}]},"maintainers":[{"email":"andrew@noblesamurai.com","name":"aeh"},{"email":"eugene@noblesamurai.com","name":"eugeneware"},{"email":"jeff@noblesamurai.com","name":"jeffroh81"},{"email":"npm@noblesamurai.com","name":"noblesamurai"},{"email":"allen.timothy.email@gmail.com","name":"timlesallen"},{"email":"tom@noblesamurai.com","name":"tomns"},{"email":"wayne@noblesamurai.com","name":"wayno"}],"_npmUser":{"name":"timlesallen","email":"allen.timothy.email@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amqp-log-to-pg_2.0.0-update.0_1599458378686_0.016097489030503898"},"_hasShrinkwrap":false},"2.0.0-update.1":{"name":"amqp-log-to-pg","description":"Logs from an amqp queue to a db.","version":"2.0.0-update.1","author":{"name":"Tim Allen","email":"tim@noblesamurai.com"},"license":"BSD","main":"src/index","scripts":{"coverage":"nyc -a -c -r html -r text npm test","pretest":"xo","test":"mocha --recursive test","watch":"mocha --recursive --watch test","docs":"jsdoc2md index.js","start":"node index.js"},"homepage":"https://github.com/noblesamurai/amqp-log-to-pg","repository":{"type":"git","url":"git://github.com/noblesamurai/amqp-log-to-pg.git"},"bugs":{"url":"https://github.com/noblesamurai/amqp-log-to-pg/issues"},"engines":{"node":">=10","npm":"6.x"},"dependencies":{"amqp-wrapper":"^5.5.0","debug":"^2.6.6","env-var":"^6.3.0","knex":"^0.21.5","ow":"^0.17.0","pg":"^8.3.3"},"devDependencies":{"chai":"^3.5.0","chai-as-promised":"^7.1.1","dirty-chai":"^1.2.2","eslint-config-semistandard":"^15.0.1","eslint-config-standard":"^14.1.1","eslint-plugin-node":"^11.1.0","eslint-plugin-standard":"^4.0.1","jsdoc-to-markdown":"^6.0.1","mocha":"^8.1.3","nyc":"^15.1.0","proxyquire":"^1.7.11","sinon":"^9.0.3","xo":"^0.33.1"},"keywords":[],"nyc":{"exclude":["coverage","test"]},"semistandard":{"env":["mocha"]},"xo":{"env":"mocha","extends":"semistandard"},"readme":"# amqp-log-to-pg\n> Logs from an amqp queue to a postgres db.\n\n## Purpose\nLog from an arbitrary amqp queue to a postgres database.  Records are assumed\nto be in JSON format.  They are insert into the specified postgres table as\n`jsonb`.\n\n## Usage\n\nThere are two possible ways to use it.\nOnce started up, it listens on the specified queue and writes the json\npayload it receives to the db (one row per payload).\n\n### Config\n\nSet the env vars (if using the repo directly).\n- `AMQP_URL` - e.g. `amqp://myhost/blah`\n- `AMQP_EXCHANGE` - amqp exchange name\n- `AMQP_CONSUME` - name of queue to consume from (auto-created)\n- `AMQP_ROUTING_KEY` - routing key to bind to the queue at startup)\n- `DATABASE_URL` - destination db to write to\n- `DATABASE_TABLE_NAME` - e.g. `my_logs`\n\nor else:\n\n```js\nconst config = {\n  db: 'postgres://user:password@postgreshost/database',\n  amqp: {\n    url: 'amqp://user:password@amqphost/vhost',\n    exchange: 'exchange-name',\n    queue: {\n      name: 'queue-name',\n      routingKey: 'will-bind-queue-to-this'\n    })\n  }),\n  tableName: 'your_table_name'\n}\n```\n\n\n### By checking out the repo\n\nIt's set up to run out of the box on heroku.  You can check out the repo and push it to heroku.\n`Procfile` is set to run `node src/index`.  But you can easily run it using docker or whatever.\n(Make sure you set the env vars for this way of running.)\n\n### As a module\n\n```\n$ npm install amqp-log-to-pg\n```\n```js\n(async => {\n  const { init, consume, shutdown } = require('amqp-log-to-pg');\n  const config = { /* see above for config format */ };\n\n  await init(config); // connects to db, connects to rabbitmq, run unrun migrations\n  consume(); // starts operation\n  /*...*/m\n  await shtudown(); // close connections to db + rabbitmq\n})();\n```\n\n## License\n\nThe BSD License\n\nCopyright (c) 2017, Tim Allen\n\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n  list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice, this\n  list of conditions and the following disclaimer in the documentation and/or\n  other materials provided with the distribution.\n\n* Neither the name of the Tim Allen nor the names of its\n  contributors may be used to endorse or promote products derived from\n  this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\nANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n","readmeFilename":"README.md","gitHead":"f04e24b72a3da2d4d413f74c609fe9b6e05764eb","_id":"amqp-log-to-pg@2.0.0-update.1","_nodeVersion":"12.18.3","_npmVersion":"6.14.8","dist":{"integrity":"sha512-WyqEJSiLOH16/kf9oMIDcQd5gIlF6udjPzK0EukNQmU82JMzhyG3LnheUZQiN3ytc/GIbsbBxCDpYm50E44Xag==","shasum":"ebd65343bfaad9e53885d09fdb8208c9763988bc","tarball":"https://registry.npmjs.org/amqp-log-to-pg/-/amqp-log-to-pg-2.0.0-update.1.tgz","fileCount":18,"unpackedSize":15348,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfVdHTCRA9TVsSAnZWagAAArwP/2LW1TIAYCZUWfsStNg0\nolkRNF5iPwKyob7yPzndszl4bguiKOL7qdPAFTnqLqAdHOmQ4vwvt/F7L4ht\nmJHI1FvgM3G7iIxCO8KUYXEa5u0eyx3VXRaoGzBUMw8O25/E8HU/c/jxY+Ip\n8q8qbQoXCNlkkAnqZ4QYwCm3FnzuVHFOlhJNtjSt8/RBV0sEFgHl6/ueNFA3\nozK3TiJy6Jnzk9HjCkGC2a4uCUEgDu6co3nkZwG65LNIQPFT6QdoN8A19i1h\n/31OWjCQOZXb3gQ6sbi3lxBpnzMxaYwozJ/EPTi5Y/98T6YpS/4V95UmTblV\n2WqCVdxz0cwwOWnngTi/Zw4ImKcIS/6fJNup5fBmDnMsJsG9FoTTsqbIJkGg\n2XcmwAFQeeA5EUNAcfblqPvmsMBjZRPyO/vkxFVcM014qXFHPOmuT9Ypg0HL\nEPF62JWoj+UfKqWIRy4LJFIz4YH4mpXmynL/epzQxOFmlcl4P++x+Ws7B0Ne\nfvucUZGG99U+JUB3wurPyP+L8AkCi7VkqYoodWaySMq7Qd4mui5q3B2RGdE/\nnvOJFYlUpcbjQ3Q+ZEm0bIhI+RIyCZ2W/YaAIZkXhyn6W5CuFELFklhraDAm\nIK7fM3EOjiQgPTz2bpaIccm35+dLS4EOlgnvcrxi2BTC9+FALM8V11K8FnBF\najSD\r\n=jQJm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCnSb1hVIifhbszWdHhFyy28BPTYK//fWA9EKpSIGtvewIhALSuFWIOXoLXIXoylqtDo6wnUS9IZP4zXEEXQ71F7GEp"}]},"maintainers":[{"email":"andrew@noblesamurai.com","name":"aeh"},{"email":"eugene@noblesamurai.com","name":"eugeneware"},{"email":"jeff@noblesamurai.com","name":"jeffroh81"},{"email":"npm@noblesamurai.com","name":"noblesamurai"},{"email":"allen.timothy.email@gmail.com","name":"timlesallen"},{"email":"tom@noblesamurai.com","name":"tomns"},{"email":"wayne@noblesamurai.com","name":"wayno"}],"_npmUser":{"name":"timlesallen","email":"allen.timothy.email@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amqp-log-to-pg_2.0.0-update.1_1599459795203_0.24048605371082443"},"_hasShrinkwrap":false},"2.0.0-update.2":{"name":"amqp-log-to-pg","description":"Logs from an amqp queue to a db.","version":"2.0.0-update.2","author":{"name":"Tim Allen","email":"tim@noblesamurai.com"},"license":"BSD","main":"src/index","scripts":{"coverage":"nyc -a -c -r html -r text npm test","pretest":"xo","test":"mocha --recursive test","watch":"mocha --recursive --watch test","docs":"jsdoc2md index.js","start":"node index.js"},"homepage":"https://github.com/noblesamurai/amqp-log-to-pg","repository":{"type":"git","url":"git://github.com/noblesamurai/amqp-log-to-pg.git"},"bugs":{"url":"https://github.com/noblesamurai/amqp-log-to-pg/issues"},"engines":{"node":">=10","npm":"6.x"},"dependencies":{"debug":"^2.6.6","env-var":"^6.3.0","knex":"^0.21.5","ow":"^0.17.0","pg":"^8.3.3","simple-amqplib":"^7.0.3"},"devDependencies":{"chai":"^3.5.0","chai-as-promised":"^7.1.1","dirty-chai":"^1.2.2","eslint-config-semistandard":"^15.0.1","eslint-config-standard":"^14.1.1","eslint-plugin-node":"^11.1.0","eslint-plugin-standard":"^4.0.1","jsdoc-to-markdown":"^6.0.1","mocha":"^8.1.3","nyc":"^15.1.0","proxyquire":"^1.7.11","sinon":"^9.0.3","xo":"^0.33.1"},"keywords":[],"nyc":{"exclude":["coverage","test"]},"semistandard":{"env":["mocha"]},"xo":{"env":"mocha","extends":"semistandard"},"readme":"# amqp-log-to-pg\n> Logs from an amqp queue to a postgres db.\n\n## Purpose\nLog from an arbitrary amqp queue to a postgres database.  Records are assumed\nto be in JSON format.  They are insert into the specified postgres table as\n`jsonb`.\n\n## Usage\n\nThere are two possible ways to use it.\nOnce started up, it listens on the specified queue and writes the json\npayload it receives to the db (one row per payload).\n\n### Config\n\nSet the env vars (if using the repo directly).\n- `AMQP_URL` - e.g. `amqp://myhost/blah`\n- `AMQP_EXCHANGE` - amqp exchange name\n- `AMQP_CONSUME` - name of queue to consume from (auto-created)\n- `AMQP_ROUTING_KEY` - routing key to bind to the queue at startup)\n- `DATABASE_URL` - destination db to write to\n- `DATABASE_TABLE_NAME` - e.g. `my_logs`\n\nor else:\n\n```js\nconst config = {\n  db: 'postgres://user:password@postgreshost/database',\n  amqp: {\n    url: 'amqp://user:password@amqphost/vhost',\n    exchange: 'exchange-name',\n    queue: {\n      name: 'queue-name',\n      routingKey: 'will-bind-queue-to-this'\n    })\n  }),\n  tableName: 'your_table_name'\n}\n```\n\n\n### By checking out the repo\n\nIt's set up to run out of the box on heroku.  You can check out the repo and push it to heroku.\n`Procfile` is set to run `node src/index`.  But you can easily run it using docker or whatever.\n(Make sure you set the env vars for this way of running.)\n\nNB: If you are running on heroku, see [here for SSL settings you\nneed](https://devcenter.heroku.com/articles/heroku-postgresql#connecting-in-node-js).\n### As a module\n\n```\n$ npm install amqp-log-to-pg\n```\n```js\n(async => {\n  const { init, consume, shutdown } = require('amqp-log-to-pg');\n  const config = { /* see above for config format */ };\n\n  await init(config); // connects to db, connects to rabbitmq, run unrun migrations\n  consume(); // starts operation\n  /*...*/m\n  await shtudown(); // close connections to db + rabbitmq\n})();\n```\n\n## License\n\nThe BSD License\n\nCopyright (c) 2017, Tim Allen\n\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n  list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice, this\n  list of conditions and the following disclaimer in the documentation and/or\n  other materials provided with the distribution.\n\n* Neither the name of the Tim Allen nor the names of its\n  contributors may be used to endorse or promote products derived from\n  this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\nANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n","readmeFilename":"README.md","gitHead":"593944f8470bcbf7b0148ab559ffb4140a1ec96c","_id":"amqp-log-to-pg@2.0.0-update.2","_nodeVersion":"12.18.3","_npmVersion":"6.14.8","dist":{"integrity":"sha512-7KXEEDsUkkNgJsf0p8yYHIkbKmcU48rGSDPlJUWh/daSwCcTxP2oNdUDu1M820Qp4z5WpCG6JeZ5Hi14PPzVLA==","shasum":"0cc0f38eead0442c2e586604581f3f89a6d8b9cd","tarball":"https://registry.npmjs.org/amqp-log-to-pg/-/amqp-log-to-pg-2.0.0-update.2.tgz","fileCount":18,"unpackedSize":15119,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfVsa7CRA9TVsSAnZWagAARIUP/RfAHoSOBDqi6cVifbsu\nB/Raq8LaYkDQI9bHVGkopiUbnYJcN/wR0bY8XEcicoSGKqDaXgZl8cjpSF5P\nOdsqPd+UR7S8j8Sc4Px1X36+RjKH8o/49b7a+XmsZv0eid0++ErzhUvKTQKw\nqtQcviUhwzg9paIs15kxl/w5ok2NNCTwO/2I++qBMVAwgA0bGNIPfaf50qWF\nnjcq5IKHyzbE5+Z8GE6166I+TNjlg4dV/oRKfK9E8mwhzCK4HveT3O7RgV+X\n4Q4mb20J82Ow/od6qtkstk6qT+s7W0+VgpAcGNFOtHJ7DI9FlEUd7gUaxJWT\nJRAewC3is40GZKo5I6gv+2rWGgtt59Pc/AqjuwmznAWSdaWFTiuqOnOx1vFK\n2ralXtz/nOFHr9V21iiL07ZxFgZmC1hlVoSZWBInJPLIhqfR5JWqELb2qqop\ncG6Mp7hbMruCUAJLr3PjmJYWIXumwUBbZsCS35YpIcgrbNmDyUXUEZIYRaP+\nGlt2QPG7/Vl/PM4CgEF8jwMDRakfvRrvpjrMryZiItQXGBKYCyYpHTklZG0/\nO3gt7yeAn5fNclRxTy/XTC7aZye3gfPFGHYKL5OutdnwSDDqMJtYxwCxBC4c\nT6bjF3keQsh35u7+pyghe3mBzDGZg8EeNb/2A7XQB97E96Y6Bb6GmSC09Dxo\nWLFF\r\n=bd1l\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/yszl0cpADURgh0d/xsG+HRrC/H8YOZqHSJ/Izg7jqQIgRwP24yd1jc64KV8SLcb9qXdCpUymWMis6ueCIcbzhxQ="}]},"maintainers":[{"name":"noblesamurai","email":"npm@noblesamurai.com"},{"name":"timlesallen","email":"allen.timothy.email@gmail.com"},{"name":"eugeneware","email":"eugene@noblesamurai.com"},{"name":"aeh","email":"andrew@noblesamurai.com"},{"name":"jeffroh81","email":"jeffroh81@gmail.com"},{"name":"wayno","email":"wayne@noblesamurai.com"},{"name":"tomns","email":"tom@noblesamurai.com"}],"_npmUser":{"name":"timlesallen","email":"allen.timothy.email@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amqp-log-to-pg_2.0.0-update.2_1599522490745_0.7230662845734894"},"_hasShrinkwrap":false},"2.0.0-update.3":{"name":"amqp-log-to-pg","description":"Logs from an amqp queue to a db.","version":"2.0.0-update.3","author":{"name":"Tim Allen","email":"tim@noblesamurai.com"},"license":"BSD-3-Clause","main":"src/index","bin":{"amqp-log-to-pg":"bin/run.js"},"scripts":{"coverage":"nyc -a -c -r html -r text npm test","pretest":"xo","test":"mocha --recursive test","watch":"mocha --recursive --watch test","docs":"jsdoc2md index.js","start":"node index.js"},"homepage":"https://github.com/noblesamurai/amqp-log-to-pg","repository":{"type":"git","url":"git://github.com/noblesamurai/amqp-log-to-pg.git"},"bugs":{"url":"https://github.com/noblesamurai/amqp-log-to-pg/issues"},"engines":{"node":">=10","npm":"6.x"},"dependencies":{"debug":"^2.6.6","env-var":"^6.3.0","knex":"^0.21.5","ow":"^0.17.0","pg":"^8.3.3","simple-amqplib":"^7.0.3"},"devDependencies":{"chai":"^3.5.0","chai-as-promised":"^7.1.1","dirty-chai":"^1.2.2","eslint-config-semistandard":"^15.0.1","eslint-config-standard":"^14.1.1","eslint-plugin-node":"^11.1.0","eslint-plugin-standard":"^4.0.1","jsdoc-to-markdown":"^6.0.1","mocha":"^8.1.3","nyc":"^15.1.0","proxyquire":"^1.7.11","sinon":"^9.0.3","xo":"^0.33.1"},"keywords":[],"nyc":{"exclude":["coverage","test"]},"semistandard":{"env":["mocha"]},"xo":{"env":"mocha","extends":"semistandard"},"readme":"# amqp-log-to-pg\n> Logs from an amqp queue to a postgres db.\n\n## Purpose\nLog from an arbitrary amqp queue to a postgres database.  Records are assumed\nto be in JSON format.  They are insert into the specified postgres table as\n`jsonb`.\n\n## Usage\n\nThere are two possible ways to use it. You can run the module directly from node, or you can `require()` it and pass in\nsome config and get lifecycle management using the exported methods.\n\nIf you run it directly, the module would look for the listed environment variables.  If you `require()` it, you must pass\nthe config in as an object.\n\nOnce started up, it listens on the specified queue and writes the json\npayload it receives to the db (one row per payload).\n\n### Config\n\nSet the env vars (if using the repo directly).\n- `AMQP_URL` - e.g. `amqp://myhost/blah`\n- `AMQP_EXCHANGE` - amqp exchange name\n- `AMQP_CONSUME` - name of queue to consume from (auto-created)\n- `AMQP_ROUTING_KEY` - routing key to bind to the queue at startup)\n- `DATABASE_URL` - destination db to write to\n- `DATABASE_TABLE_NAME` - e.g. `my_logs`\n\nor else:\n\n```js\nconst config = {\n  db: 'postgres://user:password@postgreshost/database',\n  amqp: {\n    url: 'amqp://user:password@amqphost/vhost',\n    exchange: 'exchange-name',\n    queue: {\n      name: 'queue-name',\n      routingKey: 'will-bind-queue-to-this'\n    })\n  }),\n  tableName: 'your_table_name'\n}\n```\n\n\n### By checking out the repo\n\nIt's set up to run out of the box on heroku.  You can check out the repo and push it to heroku.\n`Procfile` is set to run `node src/index`.  But you can easily run it using docker or whatever.\n(Make sure you set the env vars for this way of running.)\n\nNB: If you are running on heroku, see [here for SSL settings you\nneed](https://devcenter.heroku.com/articles/heroku-postgresql#connecting-in-node-js).\n### As a module\n\n```\n$ npm install amqp-log-to-pg\n```\n```js\n(async => {\n  const { init, consume, shutdown } = require('amqp-log-to-pg');\n  const config = { /* see above for config format */ };\n\n  await init(config); // connects to db, connects to rabbitmq, run unrun migrations\n  consume(); // starts operation\n  /*...*/m\n  await shtudown(); // close connections to db + rabbitmq\n})();\n```\n\n## License\n\nThe BSD License\n\nCopyright (c) 2017, Tim Allen\n\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n  list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice, this\n  list of conditions and the following disclaimer in the documentation and/or\n  other materials provided with the distribution.\n\n* Neither the name of the Tim Allen nor the names of its\n  contributors may be used to endorse or promote products derived from\n  this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\nANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n","readmeFilename":"README.md","gitHead":"75fbe5f43551f45960b903e84a71a314a0d8b497","_id":"amqp-log-to-pg@2.0.0-update.3","_nodeVersion":"12.18.3","_npmVersion":"6.14.8","dist":{"integrity":"sha512-TkT0STu3VbJEV1nZB/3J1z3NstbkLGvU2qJ4oI9+ceJ1WHdACysXG6nGP+oAEHmLJyj2iajwNUY0d6bAd8Nquw==","shasum":"d3260766d80daaa1f1f071bc703221a3665e2fc1","tarball":"https://registry.npmjs.org/amqp-log-to-pg/-/amqp-log-to-pg-2.0.0-update.3.tgz","fileCount":19,"unpackedSize":15375,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfVtgVCRA9TVsSAnZWagAA8IIP/iiL9YHo+GDv3LQHHSEV\n+lIGigtXMMjlt8DzkK18nACOECveVH+ywSaavAE0kNWPU9Dj4AFpBLS+j4nn\n11bg0+tgPj1p9ASj7gYyY374NWZzwDMRndqYkkl3tz+xqrO/aJ4b7nqJoHsM\nMppkHIMEeDCPNDu7ZAHgNur49l8BO7f+B+kHDu2cN+glJkhEzlTgz3/o14EF\ndXsxvxWQEUJWPr7W1E/asZesQfUcT4LecVeSkcSGMXGGMkWjZtVG88Jhpsuq\naDVVeJp1oH0e1AG6nHrB7D34eNBk1Db0OSX7eJRp9bijF6I/cCN6CsbQqo0R\n/a0waZq4hudRfbyj4f+KmA7dlTe4ip+tHIttf3c3yn0xhte5SbsC4NPzsFT6\nQEfGpHTnVHbPZulEj6Zp4FyLbGuopFke4G0brzUM3rGDU9zIn/NJfnslWiun\nooOf8z09zKyTAMdUGyzSPAtjrezQENyZAovOFEins66u4u+oP3LlJKIW9sZx\nmNZfNm4mQaUJC+DgwiLsXyPn50VvQk5vSvcozjb9QcwFF3x+Od3k6Ek8iAHc\ndyyFIM7wk1Trl3o1y1LHwBJrsSgO+xuUeWCys1kQlZxqv2VZA1eGpmj5DnCe\nKAgnWoftH04AmOksgjLdDiBuBaVRU6PneABFRo9cg5/6o4YbjOyHAxXBov8L\nvks9\r\n=qW8M\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH6dlvWdIqE0PFhnf199C1Ukth8+/7YwXKYIaT2DU4afAiEA60pjYk8eWiqyPECAKdVfNkktY2EIWUs8Tso2pVO9dN8="}]},"maintainers":[{"name":"noblesamurai","email":"npm@noblesamurai.com"},{"name":"timlesallen","email":"allen.timothy.email@gmail.com"},{"name":"eugeneware","email":"eugene@noblesamurai.com"},{"name":"aeh","email":"andrew@noblesamurai.com"},{"name":"jeffroh81","email":"jeffroh81@gmail.com"},{"name":"wayno","email":"wayne@noblesamurai.com"},{"name":"tomns","email":"tom@noblesamurai.com"}],"_npmUser":{"name":"timlesallen","email":"allen.timothy.email@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amqp-log-to-pg_2.0.0-update.3_1599526933174_0.9970443539868794"},"_hasShrinkwrap":false},"2.0.0-update.4":{"name":"amqp-log-to-pg","description":"Logs from an amqp queue to a db.","version":"2.0.0-update.4","author":{"name":"Tim Allen","email":"tim@noblesamurai.com"},"license":"BSD-3-Clause","main":"src/index","bin":{"amqp-log-to-pg":"bin/run.js"},"scripts":{"coverage":"nyc -a -c -r html -r text npm test","pretest":"xo","test":"mocha --recursive test","watch":"mocha --recursive --watch test","docs":"jsdoc2md index.js","start":"node index.js"},"homepage":"https://github.com/noblesamurai/amqp-log-to-pg","repository":{"type":"git","url":"git://github.com/noblesamurai/amqp-log-to-pg.git"},"bugs":{"url":"https://github.com/noblesamurai/amqp-log-to-pg/issues"},"engines":{"node":">=10","npm":"6.x"},"dependencies":{"debug":"^2.6.6","env-var":"^6.3.0","knex":"^0.21.5","ow":"^0.17.0","pg":"^8.3.3","simple-amqplib":"^7.0.3"},"devDependencies":{"chai":"^3.5.0","chai-as-promised":"^7.1.1","dirty-chai":"^1.2.2","eslint-config-semistandard":"^15.0.1","eslint-config-standard":"^14.1.1","eslint-plugin-node":"^11.1.0","eslint-plugin-standard":"^4.0.1","jsdoc-to-markdown":"^6.0.1","mocha":"^8.1.3","nyc":"^15.1.0","proxyquire":"^1.7.11","sinon":"^9.0.3","xo":"^0.33.1"},"keywords":[],"nyc":{"exclude":["coverage","test"]},"semistandard":{"env":["mocha"]},"xo":{"env":"mocha","extends":"semistandard"},"readme":"# amqp-log-to-pg\n> Logs from an amqp queue to a postgres db.\n\n## Purpose\nLog from an arbitrary amqp queue to a postgres database.  Records are assumed\nto be in JSON format.  They are insert into the specified postgres table as\n`jsonb`.\n\n## Usage\n\nThere are two possible ways to use it. You can run the module directly from node, or you can `require()` it and pass in\nsome config and get lifecycle management using the exported methods.\n\nIf you run it directly, the module would look for the listed environment variables.  If you `require()` it, you must pass\nthe config in as an object.\n\nOnce started up, it listens on the specified queue and writes the json\npayload it receives to the db (one row per payload).\n\n### Config\n\nSet the env vars (if using the repo directly).\n- `AMQP_URL` - e.g. `amqp://myhost/blah`\n- `AMQP_EXCHANGE` - amqp exchange name\n- `AMQP_CONSUME` - name of queue to consume from (auto-created)\n- `AMQP_ROUTING_KEY` - routing key to bind to the queue at startup)\n- `DATABASE_URL` - destination db to write to\n- `DATABASE_TABLE_NAME` - e.g. `my_logs`\n\nor else:\n\n```js\nconst config = {\n  db: 'postgres://user:password@postgreshost/database',\n  amqp: {\n    url: 'amqp://user:password@amqphost/vhost',\n    exchange: 'exchange-name',\n    queue: {\n      name: 'queue-name',\n      routingKey: 'will-bind-queue-to-this'\n    })\n  }),\n  tableName: 'your_table_name'\n}\n```\n\n\n### By checking out the repo\n\nIt's set up to run out of the box on heroku.  You can check out the repo and push it to heroku.\n`Procfile` is set to run `node src/index`.  But you can easily run it using docker or whatever.\n(Make sure you set the env vars for this way of running.)\n\nNB: If you are running on heroku, see [here for SSL settings you\nneed](https://devcenter.heroku.com/articles/heroku-postgresql#connecting-in-node-js).\n### As a module\n\n```\n$ npm install amqp-log-to-pg\n```\n```js\n(async => {\n  const { init, consume, shutdown } = require('amqp-log-to-pg');\n  const config = { /* see above for config format */ };\n\n  await init(config); // connects to db, connects to rabbitmq, run unrun migrations\n  consume(); // starts operation\n  /*...*/m\n  await shtudown(); // close connections to db + rabbitmq\n})();\n```\n\n## License\n\nThe BSD License\n\nCopyright (c) 2017, Tim Allen\n\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n  list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice, this\n  list of conditions and the following disclaimer in the documentation and/or\n  other materials provided with the distribution.\n\n* Neither the name of the Tim Allen nor the names of its\n  contributors may be used to endorse or promote products derived from\n  this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\nANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n","readmeFilename":"README.md","gitHead":"209c979b8845b4db20ead2ef62ce08517b511305","_id":"amqp-log-to-pg@2.0.0-update.4","_nodeVersion":"12.18.3","_npmVersion":"6.14.8","dist":{"integrity":"sha512-t8rt3L+CNNItwnFbCw39NbDuzd4UJdbxLPUM8KMVBALhSTCXZLWnk2VX/92m0cNJBZk59crOQMOvcF5PMPpb5w==","shasum":"3b34360e20a669aa2d0a4f6b33b3aaab91f77711","tarball":"https://registry.npmjs.org/amqp-log-to-pg/-/amqp-log-to-pg-2.0.0-update.4.tgz","fileCount":19,"unpackedSize":15396,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfVti8CRA9TVsSAnZWagAA6wIP/iYTtxASYWlvRk6yk3Kf\nt2T6mCyR1upPUrraSpkI3z4E4YQF+/FaFlYzruqg9g/MQ/f1zqcyMPfJ2tgg\n7T/aI5Hib5u3toSbvJlHuQOZJWWSSa9TzYPbO0nogYdpvcStqkL7qCvgEhFR\nWlwYtLJW5D4M1Yr3Alt9pD+pUXAIaNgcZhJufJK3O8BP6afuHVZFpg62kyRy\nysclkTGXU1aDxsEd7QPb0dDcYuSU6D6K9wG3TRu6LdFKexOteRIb5bNyToZp\nrKBaIqjGdx61tN0vpi7gDiYS7UH37ZN+cxJFHogrwrVr1b8fcullBsFPaN0S\nv5Mj7hZbIWjlicd0+Jgl2VzDttxzPjFtQHyG9LBJearagHUTsV3sVCtuAXyU\n+m3/NKR5u5FPDJH7qo1CUg2LJ2NyNOvk1plVaD0uE3n+d+DdY6UNx2F5T7/+\np60Lg4v7o+pI3MlCS8xRlx/S0w4jpbYDyY81cQVlToo1AZiOouL/+QRHItvb\n0AYylaFf5UJtXvIbMSZm/vOAmvbZ25FeESHGMVwl9DWewlML35xsQqGsCxxs\nBvngbJm9XlJCS4VeSb5bQoENp5tJrLCdORaA1zbUQlMY6jwBbibXXwWZAgj1\noKeq6qkd6K8EN54B5eDDe4fCXPbzkK1F9wNQTxeYZuy6zkumgCmgG+NKI09W\n6Z/N\r\n=gmnZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICBAe5Wlfuv9dtuydBGiGB0V9lxeMA+eSWmeT2jqyaSfAiEAh4gYYVV5wh/ZzEaDh/djLeb4ydBH9xrT1taSzGA3blI="}]},"maintainers":[{"name":"noblesamurai","email":"npm@noblesamurai.com"},{"name":"timlesallen","email":"allen.timothy.email@gmail.com"},{"name":"eugeneware","email":"eugene@noblesamurai.com"},{"name":"aeh","email":"andrew@noblesamurai.com"},{"name":"jeffroh81","email":"jeffroh81@gmail.com"},{"name":"wayno","email":"wayne@noblesamurai.com"},{"name":"tomns","email":"tom@noblesamurai.com"}],"_npmUser":{"name":"timlesallen","email":"allen.timothy.email@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amqp-log-to-pg_2.0.0-update.4_1599527099987_0.7502492909953007"},"_hasShrinkwrap":false},"2.0.0-update.5":{"name":"amqp-log-to-pg","description":"Logs from an amqp queue to a db.","version":"2.0.0-update.5","author":{"name":"Tim Allen","email":"tim@noblesamurai.com"},"license":"BSD-3-Clause","main":"src/index","bin":{"amqp-log-to-pg":"bin/run.js"},"scripts":{"coverage":"nyc -a -c -r html -r text npm test","pretest":"xo","test":"mocha --recursive test","watch":"mocha --recursive --watch test","docs":"jsdoc2md index.js","start":"node index.js"},"homepage":"https://github.com/noblesamurai/amqp-log-to-pg","repository":{"type":"git","url":"git://github.com/noblesamurai/amqp-log-to-pg.git"},"bugs":{"url":"https://github.com/noblesamurai/amqp-log-to-pg/issues"},"engines":{"node":">=10","npm":"6.x"},"dependencies":{"debug":"^2.6.6","env-var":"^6.3.0","knex":"^0.21.5","ow":"^0.17.0","pg":"^8.3.3","simple-amqplib":"^7.0.3"},"devDependencies":{"chai":"^3.5.0","chai-as-promised":"^7.1.1","dirty-chai":"^1.2.2","eslint-config-semistandard":"^15.0.1","eslint-config-standard":"^14.1.1","eslint-plugin-node":"^11.1.0","eslint-plugin-standard":"^4.0.1","jsdoc-to-markdown":"^6.0.1","mocha":"^8.1.3","nyc":"^15.1.0","proxyquire":"^1.7.11","sinon":"^9.0.3","xo":"^0.33.1"},"keywords":[],"nyc":{"exclude":["coverage","test"]},"semistandard":{"env":["mocha"]},"xo":{"env":"mocha","extends":"semistandard"},"readme":"# amqp-log-to-pg\n> Logs from an amqp queue to a postgres db.\n\n## Purpose\nLog from an arbitrary amqp queue to a postgres database.  Records are assumed\nto be in JSON format.  They are insert into the specified postgres table as\n`jsonb`.\n\n## Usage\n\nThere are two possible ways to use it. You can run the module directly from node, or you can `require()` it and pass in\nsome config and get lifecycle management using the exported methods.\n\nIf you run it directly, the module would look for the listed environment variables.  If you `require()` it, you must pass\nthe config in as an object.\n\nOnce started up, it listens on the specified queue and writes the json\npayload it receives to the db (one row per payload).\n\n### Config\n\nSet the env vars (if using the repo directly).\n- `AMQP_URL` - e.g. `amqp://myhost/blah`\n- `AMQP_EXCHANGE` - amqp exchange name\n- `AMQP_CONSUME` - name of queue to consume from (auto-created)\n- `AMQP_ROUTING_KEY` - routing key to bind to the queue at startup)\n- `DATABASE_URL` - destination db to write to\n- `DATABASE_TABLE_NAME` - e.g. `my_logs`\n\nor else:\n\n```js\nconst config = {\n  db: 'postgres://user:password@postgreshost/database',\n  amqp: {\n    url: 'amqp://user:password@amqphost/vhost',\n    exchange: 'exchange-name',\n    queue: {\n      name: 'queue-name',\n      routingKey: 'will-bind-queue-to-this'\n    })\n  }),\n  tableName: 'your_table_name'\n}\n```\n\n\n### By checking out the repo\n\nIt's set up to run out of the box on heroku.  You can check out the repo and push it to heroku.\n`Procfile` is set to run `node src/index`.  But you can easily run it using docker or whatever.\n(Make sure you set the env vars for this way of running.)\n\nNB: If you are running on heroku, see [here for SSL settings you\nneed](https://devcenter.heroku.com/articles/heroku-postgresql#connecting-in-node-js).\n### As a module\n\n```\n$ npm install amqp-log-to-pg\n```\n```js\n(async => {\n  const { init, consume, shutdown } = require('amqp-log-to-pg');\n  const config = { /* see above for config format */ };\n\n  await init(config); // connects to db, connects to rabbitmq, run unrun migrations\n  consume(); // starts operation\n  /*...*/m\n  await shtudown(); // close connections to db + rabbitmq\n})();\n```\n\n## License\n\nThe BSD License\n\nCopyright (c) 2017, Tim Allen\n\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n  list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice, this\n  list of conditions and the following disclaimer in the documentation and/or\n  other materials provided with the distribution.\n\n* Neither the name of the Tim Allen nor the names of its\n  contributors may be used to endorse or promote products derived from\n  this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\nANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n","readmeFilename":"README.md","gitHead":"94664d6fbf3af514d7759d3675624d15e939ef16","_id":"amqp-log-to-pg@2.0.0-update.5","_nodeVersion":"12.18.3","_npmVersion":"6.14.8","dist":{"integrity":"sha512-pp+5obqQHq5/2a/SfvN6cW65rYXyyErm9OU8QJ2tj7Z24j1NC1BN8kotQRYqCuqYlUZG7FGQc/VWJaLlx+goHA==","shasum":"4223b2e8e5488df4c8e2f7e64d36643df4d58471","tarball":"https://registry.npmjs.org/amqp-log-to-pg/-/amqp-log-to-pg-2.0.0-update.5.tgz","fileCount":19,"unpackedSize":15386,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfVtoBCRA9TVsSAnZWagAAM7sP/jihQgAd6YQnY6RYdAkb\np5qE9bYIpO9KZ7V3eMLAsNCdNVuht3kAjbQ/mYshZQ1ngO4zvjJJpyy06PV1\n2nPYr0BW/DSZW778BUZplAgqEvZzXR9XOoAZPAJqhUbJjzbnP3Vd3M0ftVsN\nMBioW1Jd1pnRuEX/kT47ib7qMrMikLSdH1Ecmrco4eR39krF6fFs0dRrfRv2\nAljYbPzXc522CpGMkYUn7ZBCEqvKZgl9CIFQ3/Rr8dFx14qzrMO2zseDVo5p\nbRvDgzWa6BtMjQ0OaXP2laF6QJMaJMEfcG1V6tuLRXlN1vo0GsStYxw6JVhh\n6UwTHtyytcIkLpF+rVu/1+GR8Y2DYFCVZwxuFAz14suyc8Lfaf4r+JGFSPB6\nsZLyBMZqr8HyPmJmVdAETe5AS4kqrOtKLwS/XOGwMlSfKUqO2X9arHGyc0z4\nUy2KS3sW8gOwopGoExAQCZoyR5muPcxLkKIYRpdSEFIxnouN/twV9sSSud6y\nQ0RarswHFGPQQSyZUzCaDO6oj1f4goW6zNqpVLyzuOddovDsf5QWEFmis1s5\nQsEos8ppMzraNev68BaUnAQim2Ak6MtDEMRwjWIs7KUsBg85uY8g3f+W9sVT\nPbV+GsrqR/Nh3cSYaEJwuxfxmrxrY4uYcW+LFS0UATsKBL8PP1z0bRZLRbKo\nwOwt\r\n=EL62\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEVuKkGDi1OGUqElFkqaa+RxCNOpozdfCZLxyRweRBvsAiBIXTlFgYrpeEbCCkD8nOxppy0ruTNiraMoOc+21AQMKg=="}]},"maintainers":[{"name":"noblesamurai","email":"npm@noblesamurai.com"},{"name":"timlesallen","email":"allen.timothy.email@gmail.com"},{"name":"eugeneware","email":"eugene@noblesamurai.com"},{"name":"aeh","email":"andrew@noblesamurai.com"},{"name":"jeffroh81","email":"jeffroh81@gmail.com"},{"name":"wayno","email":"wayne@noblesamurai.com"},{"name":"tomns","email":"tom@noblesamurai.com"}],"_npmUser":{"name":"timlesallen","email":"allen.timothy.email@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amqp-log-to-pg_2.0.0-update.5_1599527425233_0.9090494799583264"},"_hasShrinkwrap":false},"2.0.0":{"name":"amqp-log-to-pg","description":"Logs from an amqp queue to a db.","version":"2.0.0","author":{"name":"Tim Allen","email":"tim@noblesamurai.com"},"license":"BSD-3-Clause","main":"src/index","bin":{"amqp-log-to-pg":"bin/run.js"},"scripts":{"coverage":"nyc -a -c -r html -r text npm test","pretest":"xo","test":"mocha --recursive test","watch":"mocha --recursive --watch test","docs":"jsdoc2md index.js","start":"node index.js"},"homepage":"https://github.com/noblesamurai/amqp-log-to-pg","repository":{"type":"git","url":"git://github.com/noblesamurai/amqp-log-to-pg.git"},"bugs":{"url":"https://github.com/noblesamurai/amqp-log-to-pg/issues"},"engines":{"node":">=10","npm":"6.x"},"dependencies":{"debug":"^2.6.6","env-var":"^6.3.0","knex":"^0.21.5","ow":"^0.17.0","pg":"^8.3.3","simple-amqplib":"^7.0.3"},"devDependencies":{"chai":"^3.5.0","chai-as-promised":"^7.1.1","dirty-chai":"^1.2.2","eslint-config-semistandard":"^15.0.1","eslint-config-standard":"^14.1.1","eslint-plugin-node":"^11.1.0","eslint-plugin-standard":"^4.0.1","jsdoc-to-markdown":"^6.0.1","mocha":"^8.1.3","nyc":"^15.1.0","proxyquire":"^1.7.11","sinon":"^9.0.3","xo":"^0.33.1"},"keywords":[],"nyc":{"exclude":["coverage","test"]},"semistandard":{"env":["mocha"]},"xo":{"env":"mocha","extends":"semistandard"},"gitHead":"f618cb0038850f63755bfaf5918563d80ce84193","_id":"amqp-log-to-pg@2.0.0","_nodeVersion":"12.18.3","_npmVersion":"6.14.8","dist":{"integrity":"sha512-HVHBrmXuf8Aof+6kbUbTM4jg7JaC9aUbOarSjx61wd7Xf6/CWcW4yNulXJj+DJtvDss0Ahxwt/ZqIEFbxgtkCQ==","shasum":"814cc132ed8805878db300858a9d4b7f174296d4","tarball":"https://registry.npmjs.org/amqp-log-to-pg/-/amqp-log-to-pg-2.0.0.tgz","fileCount":19,"unpackedSize":15387,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfVv39CRA9TVsSAnZWagAA0O8P/ifftWfxyHcnoyqyOKsw\nRsq/WD12MYTFXMdAUPa018evHYfuglW2TZEwMMIphbSafox+sPoKDB6gtDaR\nxv2+MBAYsvCcueqIPp0xvaFtdAymNpE/KUIlu790saaba1SdQPT2zl8OKNYP\nVBQMPdzK/9vibo2yVjlkSfDargX9MCxvahdO2uC8uyoSsruAcFFpeXle9vad\n91i3ro8KjaMG2g3K7maGu7avKVr7Jzqfni9Akf/NIPcYmGcW5z4g6UMNxTBH\nWIPUiLQ45YpEaus3rUi/PKz7y+a5WdqF+qnIp8Re8TwLcyR9nbUHGXZxxf9z\nLN0FrA+pHxzcLbekeN5sIYK5ffQooAB6+CD37Llbb+oe04IfFpvY9RpewGDT\nVAOA5rfSNg98H0FkCPzStqnsWKwVf56dfNbK8vj03ccgSiq/08cM2aTQxHTe\nOwfuD8CRTWGBnxcn+TMZnA1PiPoOGjh5zq1lWZE/PK4DwIedcyyaqLfdew4A\nBG/Ro7XJxiDxoUCgBqDHVhWRKDaL/P5dIJoJZA2O/ucDMWZpdwoyQqPQ8i/2\nnCi1BcsCPL/zY54g4vrZPLSI89RMms3S4CC01iPp9apSQrKwinhQqgfHg3eX\nckKIvYOL2kgICV4EAumLOfJU6Z5BQgnVhypc7pPi7rqBAd5NCapJ9VltjVRT\njI4E\r\n=vvMf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDUhv2+H7YKmNnarN1mjoXUPB/CgllNP74PlB/FmcpJyQIhANr/9n06R5rRrrtc83C1E5f886o0ZRMCVDi1PawOgPGA"}]},"maintainers":[{"name":"noblesamurai","email":"npm@noblesamurai.com"},{"name":"timlesallen","email":"allen.timothy.email@gmail.com"},{"name":"eugeneware","email":"eugene@noblesamurai.com"},{"name":"aeh","email":"andrew@noblesamurai.com"},{"name":"jeffroh81","email":"jeffroh81@gmail.com"},{"name":"wayno","email":"wayne@noblesamurai.com"},{"name":"tomns","email":"tom@noblesamurai.com"}],"_npmUser":{"name":"timlesallen","email":"allen.timothy.email@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amqp-log-to-pg_2.0.0_1599536637037_0.18539968043269073"},"_hasShrinkwrap":false},"2.0.1":{"name":"amqp-log-to-pg","description":"Logs from an amqp queue to a db.","version":"2.0.1","author":{"name":"Tim Allen","email":"tim@noblesamurai.com"},"license":"BSD-3-Clause","main":"src/index","bin":{"amqp-log-to-pg":"bin/run.js"},"scripts":{"coverage":"nyc -a -c -r html -r text npm test","pretest":"xo","test":"mocha --recursive test","watch":"mocha --recursive --watch test","docs":"jsdoc2md index.js","start":"node index.js"},"homepage":"https://github.com/noblesamurai/amqp-log-to-pg","repository":{"type":"git","url":"git://github.com/noblesamurai/amqp-log-to-pg.git"},"bugs":{"url":"https://github.com/noblesamurai/amqp-log-to-pg/issues"},"engines":{"node":">=10","npm":"6.x"},"dependencies":{"debug":"^2.6.6","env-var":"^6.3.0","knex":"^0.21.5","ow":"^0.17.0","pg":"^8.3.3","simple-amqplib":"^7.0.3"},"devDependencies":{"chai":"^3.5.0","chai-as-promised":"^7.1.1","dirty-chai":"^1.2.2","eslint-config-semistandard":"^15.0.1","eslint-config-standard":"^14.1.1","eslint-plugin-node":"^11.1.0","eslint-plugin-standard":"^4.0.1","jsdoc-to-markdown":"^7.0.1","mocha":"^8.1.3","nyc":"^15.1.0","proxyquire":"^1.7.11","sinon":"^9.0.3","xo":"^0.33.1"},"keywords":[],"nyc":{"exclude":["coverage","test"]},"semistandard":{"env":["mocha"]},"xo":{"env":"mocha","extends":"semistandard"},"gitHead":"a28f8258ebdf64d25dc6361ecca9dab99e0c7987","_id":"amqp-log-to-pg@2.0.1","_nodeVersion":"14.14.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-6OYBasqVQ4J2k6277LQ2cTlhvMwyVWnHs41pP9lZbuhP5j0qmwlzQNISxFRDNKvALJYPoXsj2R7RwD596MasBA==","shasum":"4fbf7ca35bf87200ff7949ac28f791222a23ff45","tarball":"https://registry.npmjs.org/amqp-log-to-pg/-/amqp-log-to-pg-2.0.1.tgz","fileCount":19,"unpackedSize":15387,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgepFNCRA9TVsSAnZWagAAS2oP/RExrLJq8zjMNS4qrbIm\npWbPCybxwqWz9GN1ChnLXDuJImv4BnF7yS8g7LRtoB9Eb/ekVJYN/ktMW6F8\nVnl+z7dkegkJVlnGRQV1LE0FKpMYwsvggOlDU4QeHr5Mc45/n4O2NwjabCR/\nZD9MlGj5eOV57BokwA6smCxKSGwPur6739xlF5AGSndF1wuabaTAN2HeiUWN\nyYVengwg52sx/XZknYGubADB/sbWV8T3ErD6GW8eS/qKEMa4gUlBMeaqZELA\nIRfYGFxuEP11w0GPxkqylpTRsaotiPLLAqJUnwWOVNPZehRoCwtqG35HuCsO\nRMa03dFF2CrLoaOou4TA4JWasvYTRjOkvXcQF6QdvZvJtgk9LoypGfqSioAT\nQ69HmJ8C72jowKXfLHCMNuJW8cZQECSMBIOtj5ubTz/Z1sZENxR4sZhEYKHP\nKLgfpWkebTg25Cw/rbwh59yVNqaU6islMNg3EJS5SZKIQROpD8n6MPCndn3W\n24AAtEFWqHO07kAy5PpRA6t3ZfH7zcciho1ANLNz/lqglmx3/wQ5pWcscex/\nASOZFYHmBc41XsEvxYlGHEqzAxHLOc5D1EmvoXjYChhtA/FecosxpON/MGZ4\nL7TXbv2kfFJJhKhVntZUD8wRPSzqQQeJJHv4ZjJp6bijsfrCHewIHYAxFo/A\n8R7m\r\n=wbyT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcpWdntU7Whxc5yrxl5PTzCTzSr73ArNfFYlcONIsGAQIhANMBPO4uR9Qd9LFm32WsJL4GrjrKTe1yEEzNEXh4pxmO"}]},"_npmUser":{"name":"eugeneware","email":"eugene@noblesamurai.com"},"directories":{},"maintainers":[{"name":"jacob-samurai","email":"jacob@noblesamurai.com"},{"name":"watermelonpizza","email":"watermelonpizza@melonstudios.net"},{"name":"noblesamurai","email":"npm@noblesamurai.com"},{"name":"eugeneware","email":"eugene@noblesamurai.com"},{"name":"aeh","email":"andrew@noblesamurai.com"},{"name":"jeffroh81","email":"jeffroh81@gmail.com"},{"name":"wayno","email":"wayne@noblesamurai.com"},{"name":"tomns","email":"tom@noblesamurai.com"},{"name":"graven","email":"brendan@noblesamurai.com"},{"name":"timlesallen","email":"allen.timothy.email@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amqp-log-to-pg_2.0.1_1618645325496_0.9459781366274664"},"_hasShrinkwrap":false},"2.0.2":{"name":"amqp-log-to-pg","description":"Logs from an amqp queue to a db.","version":"2.0.2","author":{"name":"Tim Allen","email":"tim@noblesamurai.com"},"license":"BSD-3-Clause","main":"src/index","bin":{"amqp-log-to-pg":"bin/run.js"},"scripts":{"coverage":"nyc -a -c -r html -r text npm test","pretest":"xo","test":"mocha --recursive test","watch":"mocha --recursive --watch test","docs":"jsdoc2md index.js","start":"node index.js"},"homepage":"https://github.com/noblesamurai/amqp-log-to-pg","repository":{"type":"git","url":"git://github.com/noblesamurai/amqp-log-to-pg.git"},"bugs":{"url":"https://github.com/noblesamurai/amqp-log-to-pg/issues"},"engines":{"node":">=10","npm":"6.x"},"dependencies":{"debug":"^2.6.6","env-var":"^6.3.0","knex":"^0.21.5","ow":"^0.17.0","pg":"^8.3.3","simple-amqplib":"^7.0.3"},"devDependencies":{"chai":"^3.5.0","chai-as-promised":"^7.1.1","dirty-chai":"^1.2.2","eslint-config-semistandard":"^15.0.1","eslint-config-standard":"^14.1.1","eslint-plugin-node":"^11.1.0","eslint-plugin-standard":"^4.0.1","jsdoc-to-markdown":"^7.0.1","mocha":"^8.1.3","nyc":"^15.1.0","proxyquire":"^1.7.11","sinon":"^9.0.3","xo":"^0.33.1"},"keywords":[],"nyc":{"exclude":["coverage","test"]},"semistandard":{"env":["mocha"]},"xo":{"env":"mocha","extends":"semistandard"},"gitHead":"495fbc6791cade46ef9a9701dfd38dbfcf0f4680","_id":"amqp-log-to-pg@2.0.2","_nodeVersion":"14.14.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-8I+H0KPiR3Sm/zhPG1PEPyfKJRmDzI3hDMLYcNdzNN5MOWTtqXiR3jRLatwHva1/BtY3M1U8V5sUkXifeCAmqw==","shasum":"96c848318925291af25b8cfbb393b867b1ab34d2","tarball":"https://registry.npmjs.org/amqp-log-to-pg/-/amqp-log-to-pg-2.0.2.tgz","fileCount":19,"unpackedSize":15395,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgepU4CRA9TVsSAnZWagAAPDcQAJFHa6aWYnUvHG38cvMN\n7N8f2WKzD23qotQp/AGgoSo2Hm8KTZ8f9y1V985FAogO2ZTMFWC8AVKn9ffR\nyWL3yb2gj3dA5PKwEQkZ/tSzTPMcrAQwV6NRe7oJ7fZP8YS3Fgeh7UR6EdxO\nt8Mk6P9LlWdjy60SHMIJhjink56epv98K8dB2h7Z0oUt2sBER5WIFfKpzPlY\n79ni3P/uX38kmMJQUbp/5jwu0fBNTaUq4FDB5QrsfHjxyVOhQPe+aTV4LT6f\naDkorl0uZHbAn5ZU3+HQR7anwFyDbZ2y0fVgTYVJXDfcifqRG6Wm4yJ5b44t\nFKJYw+dyqtZS5k8Htsu28fqxnylpq64EZTrNGJ1DY4lx+pORxIENLW3UwdTb\n/3tOJUBRIBLB06k7TyzI/bcrhsklxb+Bftwgr8DufZqhrolfoWX3VbdaZubU\ns9+Zw07wJix8hmkjE/7uVTqw7A3SVenXzeTmX1Flk5t4ZcE0/5ac9eswCS3Q\nY+lglIiArkd0isCQG8c16EPj3Ojoo5upOXX2Revs152gixTOl6HLdmJuU6Oc\nKU8TT8I0xml1t4NqNDsxPyeHvfD4i3qvsG3IKoGtcHFMIMk0KnJ81paY2bXD\nOk19OqB2Z6J/tLbWrfWX8Sf4zNOx+LJsGP40Y/jKKhdZCJTNGa8gInFvUKsg\neCYh\r\n=DeVe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCfZeJBrfL/KahldZf8v1mQEhxh5NCoZQhTXSUdOTeysAIgTNapJctYEhPcUSMf0gpttdrSZv2ri0Em8YpH3+FBxzI="}]},"_npmUser":{"name":"eugeneware","email":"eugene@noblesamurai.com"},"directories":{},"maintainers":[{"name":"jacob-samurai","email":"jacob@noblesamurai.com"},{"name":"watermelonpizza","email":"watermelonpizza@melonstudios.net"},{"name":"noblesamurai","email":"npm@noblesamurai.com"},{"name":"eugeneware","email":"eugene@noblesamurai.com"},{"name":"aeh","email":"andrew@noblesamurai.com"},{"name":"jeffroh81","email":"jeffroh81@gmail.com"},{"name":"wayno","email":"wayne@noblesamurai.com"},{"name":"tomns","email":"tom@noblesamurai.com"},{"name":"graven","email":"brendan@noblesamurai.com"},{"name":"timlesallen","email":"allen.timothy.email@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amqp-log-to-pg_2.0.2_1618646327655_0.4113468154208042"},"_hasShrinkwrap":false},"2.1.0":{"name":"amqp-log-to-pg","description":"Logs from an amqp queue to a db.","version":"2.1.0","author":{"name":"Tim Allen","email":"tim@noblesamurai.com"},"license":"BSD-3-Clause","main":"src/index","bin":{"amqp-log-to-pg":"bin/run.js"},"scripts":{"coverage":"nyc -a -c -r html -r text npm test","pretest":"xo","test":"mocha --recursive test","watch":"mocha --recursive --watch test","docs":"jsdoc2md index.js","start":"node index.js"},"homepage":"https://github.com/noblesamurai/amqp-log-to-pg","repository":{"type":"git","url":"git://github.com/noblesamurai/amqp-log-to-pg.git"},"bugs":{"url":"https://github.com/noblesamurai/amqp-log-to-pg/issues"},"engines":{"node":">=10","npm":"6.x"},"dependencies":{"debug":"^2.6.6","env-var":"^6.3.0","knex":"^0.21.5","ow":"^0.17.0","pg":"^8.3.3","simple-amqplib":"^7.0.3"},"devDependencies":{"chai":"^3.5.0","chai-as-promised":"^7.1.1","dirty-chai":"^1.2.2","eslint-config-semistandard":"^15.0.1","eslint-config-standard":"^14.1.1","eslint-plugin-node":"^11.1.0","eslint-plugin-standard":"^4.0.1","jsdoc-to-markdown":"^7.0.1","mocha":"^8.1.3","nyc":"^15.1.0","proxyquire":"^1.7.11","sinon":"^9.0.3","xo":"^0.33.1"},"keywords":[],"nyc":{"exclude":["coverage","test"]},"semistandard":{"env":["mocha"]},"xo":{"env":"mocha","extends":"semistandard"},"gitHead":"6140735f3f10a4655055b3113bb8b0cac67414d4","_id":"amqp-log-to-pg@2.1.0","_nodeVersion":"14.14.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-mCUBj8vn2QwS6JdtS1qPiQCIlwJ4Y6vHP8hyGh07EGGAnVkmDewqedyEX1F5/Olz3joRRfvmpjTa9wPK6KoRYQ==","shasum":"105681304f0c5fff17ce0f87c7b9ba0e7a736740","tarball":"https://registry.npmjs.org/amqp-log-to-pg/-/amqp-log-to-pg-2.1.0.tgz","fileCount":19,"unpackedSize":15601,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgep9nCRA9TVsSAnZWagAAND8P/2IJpI6M3L/yG+aXWLEk\nnMAtwvzYuVSx6MJ5Iyw66XSUEVQvp1h56nkg4Q7rwPkbDCPlvtewvTKsgC2C\nBOB+oxqExmIPXE50Gj4o7VRZsuDFlES1eK1+9musR0sKZvHpxyRdNX3ycZzj\nxgXb8o0nZZZXDU15j8Y9a3Q/FbHU4zNj0BUaDnY57SYzbQ4PAxg4N9Rv4KRs\n5ZR/+344TdA/Mp49mShis1iPU1op+mK5v0i2Xw1KLQNk0Rs1V5y139zxApl+\nMk4CvJNgIo5Xe3pejeTUOYFY70638XJqqfghj6Oknf2H/jTSXDYpZI+LquUe\nLjdQ248bwwyxCQntFw1nRZp2KZFKVfgjd24rNERY3sbJQ+YGjQ+wg5xwEzrI\nreVz3QSPMxIB2ACEfryn0hdanZjfzl2bz6f0EFLuj/Zi+2djMKe3OFtQd0+J\nf+Ym8Mr29YR1Mv8aBdVpGzGdmoslhR3GbOYZWOcKyVc///NM8oaTYGxVPtbe\nIhKdQ59NrNPYrjjZVu6rk3dac8g67iltvr0E+E6M2+v7GXMr/RvYwTeQO0SQ\nx5t/Sri4lPMC+qcUffR5jcjZNo6OLOAnRiwybZQi6uleeXmIHaKzTXAjBvOe\no0V6MlZF9Xlf+5Ze9Osz4yXAGb09L/SlPtK7U7916D88kVdo0Guoz+TkTb7J\nqjFs\r\n=G506\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCI71J1tXoYkmzXc+PC4Hgdo6axYQTHcdampKeVb4kdAAIgHlJXa+E+Ex77aa+4Eh5+Cm6hc0S26bkSa+VPzXmqUBI="}]},"_npmUser":{"name":"eugeneware","email":"eugene@noblesamurai.com"},"directories":{},"maintainers":[{"name":"jacob-samurai","email":"jacob@noblesamurai.com"},{"name":"watermelonpizza","email":"watermelonpizza@melonstudios.net"},{"name":"noblesamurai","email":"npm@noblesamurai.com"},{"name":"eugeneware","email":"eugene@noblesamurai.com"},{"name":"aeh","email":"andrew@noblesamurai.com"},{"name":"jeffroh81","email":"jeffroh81@gmail.com"},{"name":"wayno","email":"wayne@noblesamurai.com"},{"name":"tomns","email":"tom@noblesamurai.com"},{"name":"graven","email":"brendan@noblesamurai.com"},{"name":"timlesallen","email":"allen.timothy.email@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amqp-log-to-pg_2.1.0_1618648934553_0.9091774081368584"},"_hasShrinkwrap":false},"2.1.1":{"name":"amqp-log-to-pg","description":"Logs from an amqp queue to a db.","version":"2.1.1","author":{"name":"Tim Allen","email":"tim@noblesamurai.com"},"license":"BSD-3-Clause","main":"src/index","bin":{"amqp-log-to-pg":"bin/run.js"},"scripts":{"coverage":"nyc -a -c -r html -r text npm test","pretest":"xo","test":"mocha --recursive test","watch":"mocha --recursive --watch test","docs":"jsdoc2md index.js","start":"node index.js"},"homepage":"https://github.com/noblesamurai/amqp-log-to-pg","repository":{"type":"git","url":"git://github.com/noblesamurai/amqp-log-to-pg.git"},"bugs":{"url":"https://github.com/noblesamurai/amqp-log-to-pg/issues"},"engines":{"node":">=10","npm":"6.x"},"dependencies":{"debug":"^2.6.6","env-var":"^6.3.0","knex":"^0.21.5","ow":"^0.17.0","pg":"^8.3.3","simple-amqplib":"^7.0.3"},"devDependencies":{"chai":"^3.5.0","chai-as-promised":"^7.1.1","dirty-chai":"^1.2.2","eslint-config-semistandard":"^15.0.1","eslint-config-standard":"^14.1.1","eslint-plugin-node":"^11.1.0","eslint-plugin-standard":"^4.0.1","jsdoc-to-markdown":"^7.0.1","mocha":"^8.1.3","nyc":"^15.1.0","proxyquire":"^1.7.11","sinon":"^9.0.3","xo":"^0.33.1"},"keywords":[],"nyc":{"exclude":["coverage","test"]},"semistandard":{"env":["mocha"]},"xo":{"env":"mocha","extends":"semistandard"},"gitHead":"7b26dbe4e34c607e57b80166c88378e3dd4b71d5","_id":"amqp-log-to-pg@2.1.1","_nodeVersion":"14.14.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-3+t+yK8tVlpE9iQiQMSiqedGxuXHaCrGc0UPtAKB5kjSboN7lyoL26u/621v91+nPL8L+xcT10Rm1dKw/7aYTQ==","shasum":"5dbbc64fe25d73f44d1a519765f2227edabea71e","tarball":"https://registry.npmjs.org/amqp-log-to-pg/-/amqp-log-to-pg-2.1.1.tgz","fileCount":19,"unpackedSize":15599,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2jWICRA9TVsSAnZWagAAzP8P/3W6LVgMhZqEGtjAq0jG\ndaMK+XCbhXxtLtCRF8IZTontoZ/xPlfQS4WVlKXG9adfEhy5xJXLeYodudZr\nYCcsZUg1y4MAAcCK74ggHD8Mb98gABZKFcGYAbYNxmTm8QD50hM3FocsCwJZ\nhMkGEP1yjV5PFRNSBbmbyH9AeEn9lLEqVV4g1pf0qplamaSXUQzmbKqXU7bx\nOWHJSWaaTA7IH2bt+cNQdHDcG5jOSB4+GTViBIkSApCylq2gF6F0Hn6VhtFm\nARikCETDWv0sU7KvP38NXFcG3eoLmZRtJwmaj5oTndWSelYc+gWxfztJGNSm\nIqQXPbA6+mxEflBs4JHCYWrArHA7ZS9pmiIMWADZtqWrsnpxMloAy41OtUjV\nM6lO1G5HbNIZwvc1XJmpXdKGKErD7pDi6ekxLL4mhW30ANzSnYeMzOnm/JpV\nUelfxfbUgxduhqHiPWf5Dt5Q/H2sGsNfUQYb/JxLn4hCSbAr5SCvVRjbPBIi\nOyGl1y4qMd84ELngbhbLTNN/xVm6Ffl490a3kVltQzffjjhK2av5+7cPxPe7\nr/fAGPP1RaP8SqiGa+Rk0JbLjKeXDwe9Z0oVpn8n73G9V5VpgZdr4s0rdAaT\nMih6lwFbFXMRZUTN6vHHgus66ZgvDG/RSpduFDMJv8BAeQwmSNCmQxR+pPi6\njfUL\r\n=m/Te\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYnnN4rcBNsykkI4zZCiVzOuUU/M7i4Y1qFnSMza4o9AIhANaDMhqwS9XikhylggxNP2juVTt5jjDaBN+/H5G749xy"}]},"_npmUser":{"name":"eugeneware","email":"eugene@noblesamurai.com"},"directories":{},"maintainers":[{"name":"jacob-samurai","email":"jacob@noblesamurai.com"},{"name":"watermelonpizza","email":"watermelonpizza@melonstudios.net"},{"name":"noblesamurai","email":"npm@noblesamurai.com"},{"name":"eugeneware","email":"eugene@noblesamurai.com"},{"name":"aeh","email":"andrew@noblesamurai.com"},{"name":"jeffroh81","email":"jeffroh81@gmail.com"},{"name":"wayno","email":"wayne@noblesamurai.com"},{"name":"tomns","email":"tom@noblesamurai.com"},{"name":"graven","email":"brendan@noblesamurai.com"},{"name":"timlesallen","email":"allen.timothy.email@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/amqp-log-to-pg_2.1.1_1618649421750_0.44199871613454644"},"_hasShrinkwrap":false}},"time":{"created":"2018-08-06T01:42:19.302Z","1.0.1-0":"2018-08-06T01:42:19.360Z","modified":"2022-04-11T13:44:07.505Z","1.1.0-meta.0":"2018-08-06T01:48:22.671Z","1.1.0-meta.1":"2018-08-06T04:44:20.126Z","1.1.0-meta.2":"2018-08-06T04:56:22.956Z","1.1.0-meta.3":"2018-08-06T05:17:49.994Z","1.1.0":"2018-12-12T23:11:10.067Z","1.2.0-update.0":"2020-09-04T06:26:42.875Z","1.2.0-update.1":"2020-09-07T05:45:02.959Z","1.2.0-update.2":"2020-09-07T05:58:11.847Z","2.0.0-update.0":"2020-09-07T05:59:38.834Z","2.0.0-update.1":"2020-09-07T06:23:15.304Z","2.0.0-update.2":"2020-09-07T23:48:10.855Z","2.0.0-update.3":"2020-09-08T01:02:13.279Z","2.0.0-update.4":"2020-09-08T01:05:00.105Z","2.0.0-update.5":"2020-09-08T01:10:25.355Z","2.0.0":"2020-09-08T03:43:57.244Z","2.0.1":"2021-04-17T07:42:05.638Z","2.0.2":"2021-04-17T07:58:47.816Z","2.1.0":"2021-04-17T08:42:14.726Z","2.1.1":"2021-04-17T08:50:21.897Z"},"maintainers":[{"email":"npm@noblesamurai.com","name":"noblesamurai"},{"email":"eugene@noblesamurai.com","name":"eugeneware"},{"email":"jacob@noblesamurai.com","name":"jacob-samurai"},{"email":"allen.timothy.email@gmail.com","name":"timlesallen"}],"description":"Logs from an amqp queue to a db.","homepage":"https://github.com/noblesamurai/amqp-log-to-pg","keywords":[],"repository":{"type":"git","url":"git://github.com/noblesamurai/amqp-log-to-pg.git"},"author":{"name":"Tim Allen","email":"tim@noblesamurai.com"},"bugs":{"url":"https://github.com/noblesamurai/amqp-log-to-pg/issues"},"license":"BSD-3-Clause","readme":"# amqp-log-to-pg\n> Logs from an amqp queue to a postgres db.\n\n## Purpose\nLog from an arbitrary amqp queue to a postgres database.  Records are assumed\nto be in JSON format.  They are insert into the specified postgres table as\n`jsonb`.\n\n## Usage\n\nThere are two possible ways to use it. You can run the module directly from node, or you can `require()` it and pass in\nsome config and get lifecycle management using the exported methods.\n\nIf you run it directly, the module would look for the listed environment variables.  If you `require()` it, you must pass\nthe config in as an object.\n\nOnce started up, it listens on the specified queue and writes the json\npayload it receives to the db (one row per payload).\n\n### Config\n\nSet the env vars (if using the repo directly).\n- `AMQP_URL` - e.g. `amqp://myhost/blah`\n- `AMQP_EXCHANGE` - amqp exchange name\n- `AMQP_CONSUME` - name of queue to consume from (auto-created)\n- `AMQP_ROUTING_KEY` - routing key to bind to the queue at startup)\n- `DATABASE_URL` - destination db to write to\n- `DATABASE_TABLE_NAME` - e.g. `my_logs`\n\nor else:\n\n```js\nconst config = {\n  db: 'postgres://user:password@postgreshost/database',\n  amqp: {\n    url: 'amqp://user:password@amqphost/vhost',\n    exchange: 'exchange-name',\n    queue: {\n      name: 'queue-name',\n      routingKey: 'will-bind-queue-to-this'\n    })\n  }),\n  tableName: 'your_table_name'\n}\n```\n\n\n### By checking out the repo\n\nIt's set up to run out of the box on heroku.  You can check out the repo and push it to heroku.\n`Procfile` is set to run `node src/index`.  But you can easily run it using docker or whatever.\n(Make sure you set the env vars for this way of running.)\n\nNB: If you are running on heroku, see [here for SSL settings you\nneed](https://devcenter.heroku.com/articles/heroku-postgresql#connecting-in-node-js).\n### As a module\n\n```\n$ npm install amqp-log-to-pg\n```\n```js\n(async => {\n  const { init, consume, shutdown } = require('amqp-log-to-pg');\n  const config = { /* see above for config format */ };\n\n  await init(config); // connects to db, connects to rabbitmq, run unrun migrations\n  consume(); // starts operation\n  /*...*/m\n  await shtudown(); // close connections to db + rabbitmq\n})();\n```\n\n## License\n\nThe BSD License\n\nCopyright (c) 2017, Tim Allen\n\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n  list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice, this\n  list of conditions and the following disclaimer in the documentation and/or\n  other materials provided with the distribution.\n\n* Neither the name of the Tim Allen nor the names of its\n  contributors may be used to endorse or promote products derived from\n  this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\nANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n","readmeFilename":"README.md"}