{"_id":"hook.io-couch","_rev":"5-711008d68464c403940c3f66e852882a","name":"hook.io-couch","description":"emit hook.io events based on your CouchDB _changes feed","dist-tags":{"latest":"0.8.0"},"versions":{"0.1.0":{"author":{"name":"Marak Squires","email":"marak.squires@gmail.com"},"name":"hook.io-couch","description":"emit hook.io events based on your CouchDB _changes feed","version":"0.1.0","repository":{"type":"git","url":"git://github.com/hookio/couch.git"},"bin":{"hookio-couch":"./bin/couch"},"main":"./lib/couch","engines":{"node":">= v0.4.7"},"dependencies":{"hook.io":"0.7.x","follow":"0.1.x"},"devDependencies":{},"_npmJsonOpts":{"file":"/Users/maraksquires/.npm/hook.io-couch/0.1.0/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"hook.io-couch@0.1.0","_engineSupported":true,"_npmVersion":"1.0.27","_nodeVersion":"v0.4.10","_defaultsLoaded":true,"dist":{"shasum":"44467659063c193e25f7052d64f7f9d3d4dd0978","tarball":"https://registry.npmjs.org/hook.io-couch/-/hook.io-couch-0.1.0.tgz","integrity":"sha512-fMZnEPNV1KTmwD9FUCGASIhGByvL6ojBKkZ5jAGLqYHH1ekWAxkVd1mJUiu33YsAfOJVz6kZpeQfewYmZgpzZw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCs8GRdpqOEsZ6lUywxZYhHtsq6gmVSmKt6nYHBG2Cs6wIgXzsc360K7j6o80CPwkgLa3XX4+xwccN5t2WTxz0DU08="}]},"maintainers":[{"name":"marak","email":"marak.squires@gmail.com"}]},"0.8.0":{"author":{"name":"Marak Squires","email":"marak.squires@gmail.com"},"name":"hook.io-couch","description":"emit hook.io events based on your CouchDB _changes feed","version":"0.8.0","repository":{"type":"git","url":"git://github.com/hookio/couch.git"},"bin":{"hookio-couch":"./bin/couch"},"main":"./lib/couch","engines":{"node":">= v0.4.7"},"dependencies":{"hook.io":"0.8.x","follow":"0.2.x"},"devDependencies":{},"_npmUser":{"name":"marak","email":"marak.squires@gmail.com"},"_id":"hook.io-couch@0.8.0","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.4","_nodeVersion":"v0.6.12","_defaultsLoaded":true,"dist":{"shasum":"7e92f7c11d7a0a5c1c9fb8b6045b18244dc1a38a","tarball":"https://registry.npmjs.org/hook.io-couch/-/hook.io-couch-0.8.0.tgz","integrity":"sha512-mpGftfY2O0UTgV6Tn5HzRyhu3G0F4azyoGGA0SQ/1tRMPGsWGh/NiXMmElWHci+ghYQUqKrDOAJ+fLCVGz0RWA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDfosZFTCZFsw4XhQfzgPRAThyoFO5WI40R47/Ua3Qe8wIgJI+vAfH6W1nlWSsTuogyyHPPwESIXH1ZEXH65E5OYQI="}]},"maintainers":[{"name":"marak","email":"marak.squires@gmail.com"}]}},"maintainers":[{"name":"marak","email":"marak.squires@gmail.com"}],"time":{"modified":"2022-06-18T21:29:12.782Z","created":"2011-09-11T10:20:13.254Z","0.1.0":"2011-09-11T10:20:14.502Z","0.8.0":"2012-04-11T09:24:02.521Z"},"author":{"name":"Marak Squires","email":"marak.squires@gmail.com"},"repository":{"type":"git","url":"git://github.com/hookio/couch.git"},"readme":"## hook.io-couch\n\n*emit hook.io events based on your CouchDB _changes feed*\n\nBuilt using the [Follow](https://github.com/iriscouch/follow) library by Jason Smith of [Iris Couch](http://www.iriscouch.com/)\n\n## Installation\n\n     git clone git@github.com:hookio/couch.git\n     cd couch\n     npm install\n     node bin/couch\n\n### Using NPM\n\n    npm install hook.io-couch\n    hookio-couch --debug\n\n**Note: Using the default options hookio-couch will attempt to connect to http://localhost:5984/mydatabase**\n\n## Hook Event Emitters\n\n**couch::change** *event emitted when a document is changed*\n\n**couch::error** *event emitted when there is an error in your changes feed*\n\n`hook.io-couch` will also automatically detect CouchDB documents that conform to JSON-RPC 1.0. This means that a document that looks like this:\n\n```js\n{\n   \"_id\": \"002da93490105bfab4466a756c00286d\",\n   \"_rev\": \"14-6b9d6eed98e045a9a34b65d62667a10e\",\n   \"method\": \"hello\",\n   \"params\": {\n       \"foo\": \"bar\"\n   }\n}\n```\n\nWill emit:\n\n```js\nhook.emit('hello', { \"foo\": \"bar\" });\n```\n\n## Hook config.json data\n\n``` js\n{\n \"feed-db\": \"http://localhost:5984/mydatabase\",\n \"feed-since\": \"now\",\n \"feed-heartbeat\": 3000,\n \"feed-inactivity\": 8640000,\n \"feed-include-docs\" : true\n}\n```","readmeFilename":""}