{"_id":"couch","_rev":"25-21b30321d7d751aabb94a30fa7b3eb0d","name":"couch","description":"Stupid simple Couch wrapper based on Request","dist-tags":{"latest":"0.8.0"},"versions":{"0.0.1":{"name":"couch","dependencies":{"request":">= 2.1.1"},"version":"0.0.1","author":{"name":"Mikeal Rogers","email":"mikeal.rogers@gmail.com"},"description":"Stupid simple Couch wrapper based on Request","_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"_id":"couch@0.0.1","devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.106","_nodeVersion":"v0.4.8","_defaultsLoaded":true,"dist":{"shasum":"cfbfceb3e075fa2081103a5a90c9dcb925203e3b","tarball":"https://registry.npmjs.org/couch/-/couch-0.0.1.tgz","integrity":"sha512-a1ymrcP1kZjWM4KzZOn+WQRUEU8J/3ZIeCrmWHkVdSVib5CZRIQ6IIrg2b0A9tsyMms+wiYMjuvau2cFTZW0zA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEFB0MHpkMtbtKPZooLC2mv6gqWMOZEZspoABnn3UbwOAiBUgoFOYlDQ0BdgpcmtXMAolsPsn7K8aBWlaaA+M18URA=="}]},"maintainers":[{"name":"maxogden","email":"max@maxogden.com"}]},"0.0.5":{"name":"couch","dependencies":{"request":">= 2.1.1","follow":"*"},"version":"0.0.5","author":{"name":"Mikeal Rogers","email":"mikeal.rogers@gmail.com"},"description":"Stupid simple Couch wrapper based on Request","_npmUser":{"name":"mikeal","email":"mikeal.rogers@gmail.com"},"_id":"couch@0.0.5","devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.0-beta-10","_nodeVersion":"v0.6.8-pre","_defaultsLoaded":true,"dist":{"shasum":"d541d3cc6ad49e6159adee978494fcb309d524ab","tarball":"https://registry.npmjs.org/couch/-/couch-0.0.5.tgz","integrity":"sha512-ANUOWfnzwUkukNFKaIbWtn2+ym5alntBTfHOiddlTNyXsG6VjaKSanzIrt7jyihJv3g/jPuXI9ZwvprvQ+znbQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCM0tkqeO6kzFmbxREsTxSknyNThvSklYwjXMC6wUX/+AIhAKge7dDSJLmZtMm27vnZT4Pbg4nZrq5E/WYGamjJQJRE"}]},"maintainers":[{"name":"maxogden","email":"max@maxogden.com"},{"name":"mikeal","email":"mikeal.rogers@gmail.com"}]},"0.1.0":{"name":"couch","dependencies":{"request":">= 2.1.1","follow":"*"},"version":"0.1.0","author":{"name":"Mikeal Rogers","email":"mikeal.rogers@gmail.com"},"description":"Stupid simple Couch wrapper based on Request","_npmUser":{"name":"mikeal","email":"mikeal.rogers@gmail.com"},"_id":"couch@0.1.0","devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.16","_nodeVersion":"v0.6.8-pre","_defaultsLoaded":true,"dist":{"shasum":"d935874a16585d228dda65ff7f07427e0f6b735c","tarball":"https://registry.npmjs.org/couch/-/couch-0.1.0.tgz","integrity":"sha512-tOPnJHHxRwLIwRH2VrLLGZRzgUCrl2305EnfmmO7pE8Mf8nNJJj+jGmH5s8UVPBTu0fFg7tFDjSedYngWQXNYQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDrW9TooBoQ1sm4YS76tae9TCo5hqvNvIcV8ym5vYoQmQIgTm5dm6w9UmhBlgx816vK11lpJ9zoD0LyB2Dbij/P4Ms="}]},"maintainers":[{"name":"maxogden","email":"max@maxogden.com"},{"name":"mikeal","email":"mikeal.rogers@gmail.com"}]},"0.2.0":{"name":"couch","dependencies":{"request":"~2.16.2","follow":"*"},"version":"0.2.0","author":{"name":"Mikeal Rogers","email":"mikeal.rogers@gmail.com"},"description":"Stupid simple Couch wrapper based on Request","_id":"couch@0.2.0","dist":{"shasum":"a2732d5681682925bd4a7a06b02d48671cfd25d9","tarball":"https://registry.npmjs.org/couch/-/couch-0.2.0.tgz","integrity":"sha512-oOR1Sgjris6oqrrTOieQjvEXL2clJyGLQ09rxSIh7NvyxtFeuGKm9ChWMB5HcWgqc9GrwqNq9EePEW6TJePT6A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFuszbfpLxXP7Z9PvY8ys92nDm+x5fLS/STsrSfpouhVAiB5JtW+Tu0XS+5+IKcnOWHe3Hz9L6w1ycmNtK59majFtg=="}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"mikeal","email":"mikeal.rogers@gmail.com"},"maintainers":[{"name":"maxogden","email":"max@maxogden.com"},{"name":"mikeal","email":"mikeal.rogers@gmail.com"}]},"0.3.0":{"name":"couch","dependencies":{"request":"~2.16.2"},"version":"0.3.0","author":{"name":"Mikeal Rogers","email":"mikeal.rogers@gmail.com"},"description":"Stupid simple Couch wrapper based on Request","_id":"couch@0.3.0","dist":{"shasum":"4292dd0e7a177aa394821414c859104535862566","tarball":"https://registry.npmjs.org/couch/-/couch-0.3.0.tgz","integrity":"sha512-zDnxf9oTLG/fyE/UcC9IY4kaIqwnCYp/5FG97P4sEjTVEyJ8GFz/jqylUChQSQ4KSiSPJifzgNYAvfoV1vUoRA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC0sbhXoHckwdnRH9eBceF2D8yEUMBnLc8Re15e72rWagIgExAdthF32NHeiRBjWpGa9bOeloFb7nz9znmUp2woXGY="}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"mikeal","email":"mikeal.rogers@gmail.com"},"maintainers":[{"name":"maxogden","email":"max@maxogden.com"},{"name":"mikeal","email":"mikeal.rogers@gmail.com"}]},"0.4.0":{"name":"couch","dependencies":{"request":"~2.16.2"},"version":"0.4.0","author":{"name":"Mikeal Rogers","email":"mikeal.rogers@gmail.com"},"description":"Stupid simple Couch wrapper based on Request","_id":"couch@0.4.0","dist":{"shasum":"8c506d0c06bc240075c3498e66d386cd78597220","tarball":"https://registry.npmjs.org/couch/-/couch-0.4.0.tgz","integrity":"sha512-02eWz0CsguYI2S+FuRj9creO3LjOpU+3ky4SbmAYDE0ANquxXmiJO1Jh+gY4/q+i9YBdAfrnePsxbqBuox388Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSe5ZB3rp0SMt+9Z/+9SYuwpsBQFO6sU0ok4mL1AEpcgIhAKJgZG3vtIc7KRsSQEaRh9hAh8AYzAuL8/xSrwsntDYa"}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"mikeal","email":"mikeal.rogers@gmail.com"},"maintainers":[{"name":"maxogden","email":"max@maxogden.com"},{"name":"mikeal","email":"mikeal.rogers@gmail.com"}]},"0.5.0":{"name":"couch","dependencies":{"request":"~2.27.0"},"version":"0.5.0","author":{"name":"Mikeal Rogers","email":"mikeal.rogers@gmail.com"},"description":"Stupid simple Couch wrapper based on Request","_id":"couch@0.5.0","dist":{"shasum":"15b63b0eb5b1fbdf1ce880076701f5f72e35e316","tarball":"https://registry.npmjs.org/couch/-/couch-0.5.0.tgz","integrity":"sha512-L+JIRTdP9mQ8NZEqF3gMaP/BgSt9vP/pgxz1nIsArKHHqNMz6vwW4xR/NO1VGlv6MSy7ilNjZbMYNbDp1Bh4uQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGpgBHuMUjpFxY1HRrONTUqOCktowwNbd1VRl2LfwfM9AiAjqRmU8kYo+AsiKdhhKrtp7C11vd8TvGo6mdmaWmrbEA=="}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"mikeal","email":"mikeal.rogers@gmail.com"},"maintainers":[{"name":"maxogden","email":"max@maxogden.com"},{"name":"mikeal","email":"mikeal.rogers@gmail.com"}]},"0.6.0":{"name":"couch","dependencies":{"request":"^2.81.0"},"version":"0.6.0","author":{"name":"Mikeal Rogers","email":"mikeal.rogers@gmail.com"},"description":"Stupid simple Couch wrapper based on Request","main":"index.js","devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/mikeal/couch.git"},"keywords":[],"license":"Apache-2.0","bugs":{"url":"https://github.com/mikeal/couch/issues"},"homepage":"https://github.com/mikeal/couch#readme","gitHead":"df015a6a8124add4a660a900f82f86768f1df88c","_id":"couch@0.6.0","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"mikeal","email":"mikeal.rogers@gmail.com"},"dist":{"integrity":"sha512-2pslD6YmdJQ3aF9vM/kTC1D3H2uDkGJq4zeY29b9SMHF/UuUO8DYyJnIDdLoFiV1B+ZwpnE05iLZSozUY/+rrw==","shasum":"f003acc7246346da9c617794fd015ae09580059b","tarball":"https://registry.npmjs.org/couch/-/couch-0.6.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHG24uepLhbZV1vriXCIds+lSsQAe2+CUw9I8So+BNczAiEAyDiBq+f/3qVLxDPb5Ey+IkgxqJPfKLKDH3cORiwAzxg="}]},"maintainers":[{"name":"maxogden","email":"max@maxogden.com"},{"name":"mikeal","email":"mikeal.rogers@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/couch-0.6.0.tgz_1501727967747_0.2954295561648905"}},"0.7.0":{"name":"couch","dependencies":{"request":"^2.81.0"},"version":"0.7.0","author":{"name":"Mikeal Rogers","email":"mikeal.rogers@gmail.com"},"description":"Stupid simple Couch wrapper based on Request","main":"index.js","devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/mikeal/couch.git"},"keywords":[],"license":"Apache-2.0","bugs":{"url":"https://github.com/mikeal/couch/issues"},"homepage":"https://github.com/mikeal/couch#readme","gitHead":"a6e786924e7f3e2bf81a83b90a85ae96f3df8272","_id":"couch@0.7.0","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"mikeal","email":"mikeal.rogers@gmail.com"},"dist":{"integrity":"sha512-neiZtJwkuUfu0VlOwffwNa45IVrdra5urUNN2sqMe6D5z+BrMT/fUvQVebUqQ7q650R6eX0KlIafif+gmnFLjA==","shasum":"4ee884f8727b472273ec00d0f997fcdeca2973cc","tarball":"https://registry.npmjs.org/couch/-/couch-0.7.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIATF5C119k3k1yAcdV43DOUNKpc+8oCYF79hscJUe0izAiEA3aliLEGB8EegLf4nprtGw0skcVorsdqXTNsKUx5DNqg="}]},"maintainers":[{"name":"maxogden","email":"max@maxogden.com"},{"name":"mikeal","email":"mikeal.rogers@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/couch-0.7.0.tgz_1501728067862_0.5284669275861233"}},"0.8.0":{"name":"couch","dependencies":{"request":"^2.81.0"},"version":"0.8.0","author":{"name":"Mikeal Rogers","email":"mikeal.rogers@gmail.com"},"description":"Stupid simple Couch wrapper based on Request","main":"index.js","devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/mikeal/couch.git"},"keywords":[],"license":"Apache-2.0","bugs":{"url":"https://github.com/mikeal/couch/issues"},"homepage":"https://github.com/mikeal/couch#readme","gitHead":"e6d4ccd39c23198c9ce8d83a87ef8612b2f2fb26","_id":"couch@0.8.0","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"mikeal","email":"mikeal.rogers@gmail.com"},"dist":{"integrity":"sha512-z/FS7k4Jg6sw2bK4ysATyaqkP3V/Qo1QNsz3SQh6ZOS7MLW4nWAhXZTp4Jsqo8F5Irfdkj6YUbxX8lDV4xpPpQ==","shasum":"f5f0ace39bc80cae5bc075d1ee7d3800ec805258","tarball":"https://registry.npmjs.org/couch/-/couch-0.8.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF8n0yk/xW1GGZb0oKHN1u9dVdec8Ina0wCKKEr4bYjLAiBbS+f5voUg3bf5A0/2WTbAxbHnT4zY3bDlHTGCB1RISw=="}]},"maintainers":[{"name":"maxogden","email":"max@maxogden.com"},{"name":"mikeal","email":"mikeal.rogers@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/couch-0.8.0.tgz_1501730741021_0.6838906651828438"}}},"maintainers":[{"name":"maxogden","email":"max@maxogden.com"},{"name":"mikeal","email":"mikeal.rogers@gmail.com"}],"time":{"modified":"2022-06-14T01:40:14.452Z","created":"2011-11-21T21:34:07.804Z","0.0.1":"2011-11-21T21:35:33.644Z","0.0.5":"2012-02-27T20:38:05.866Z","0.1.0":"2012-04-16T23:39:04.889Z","0.2.0":"2013-03-13T22:29:14.791Z","0.3.0":"2013-03-18T19:33:47.818Z","0.4.0":"2013-08-30T21:34:29.242Z","0.5.0":"2013-09-02T22:29:04.775Z","0.6.0":"2017-08-03T02:39:27.854Z","0.7.0":"2017-08-03T02:41:07.953Z","0.8.0":"2017-08-03T03:25:41.123Z"},"author":{"name":"Mikeal Rogers","email":"mikeal.rogers@gmail.com"},"users":{"paulj":true,"j.su":true,"erikvold":true},"readme":"# couch -- Stupid simple Couch wrapper based on Request.\n\n## Install\n\n<pre>\n  npm install couch\n</pre>\n\nOr from source:\n\n<pre>\n  git clone git://github.com/mikeal/couch.git \n  cd couch\n  npm link\n</pre>\n\n## Usage\n\n```javascript\nvar couch = require('couch')\n  , c = couch('http://me.iriscouch.com/db')\n  ;\n\nc.post({'msg':'new document'}, function (e, info) {\n  if (e) throw e\n  c.post({'msg':'new document', _id:info.id, _rev:info.rev}, function (e, info) {\n    if (e) throw e\n    c.get(info.id, function (e, doc) {\n      if (e) throw e\n      console.log(doc) // {'msg':'new document', _id:<id>, _rev:<rev>}\n    })\n  })\n})\n```\n\n## Couch\n\n* new Couch(options) - return value from require('couch')(url)\n* Couch.get(id, cb) - get a document of the specified id\n* Couch.post(doc, cb) - write a document. MUST have _id and _rev if already exists\n* Couch.update(id, mutate, cb) - updated an existing document atomically (regardless of revision)\n\n```javascript\nc.update('myid', function (doc) {doc.status = 'complete'}, function (e, info) {\n if (e) throw e\n console.log(info) // {seq:<seq>, id:<id>, rev:<rev>} \n}) \n```\n## Views\n\n* Couch.all(opts, cb) - Hits the /db/\\_all_docs API which accepts similar arguments and has a simpilar return value to views but is an index of all documents in CouchDB.\n\n```javascript\nc.all({keys:['onlykey1', 'onlykey2']}, function (e, results) {\n  if (e) throw e\n  console.log(results.rows) // [{id:onlykey1, rev:<rev>}, {id:onlykey2, rev:<rev>}]\n})\n```\n\n* Couch.design(name).view(name).query(opts)\n\n```javascript\nc.design('app').view('byProperty').query({key:'type', include_docs:true}, function (e, results) {\n  console.log(results.rows)\n})\n```","homepage":"https://github.com/mikeal/couch#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/mikeal/couch.git"},"bugs":{"url":"https://github.com/mikeal/couch/issues"},"license":"Apache-2.0","readmeFilename":"README.md"}