{"_id":"koa-cookie","_rev":"4-d75796a8d2a7322530b4e44d825d22ed","name":"koa-cookie","description":"Koa cookie parser middleware","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"koa-cookie","version":"1.0.0","description":"Koa cookie parser middleware","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/varunpal/koa-cookie.git"},"keywords":["koa","cookie","middleware","parser","cookie-parser","koa-router"],"author":{"name":"Varun Pal"},"license":"ISC","bugs":{"url":"https://github.com/varunpal/koa-cookie/issues"},"homepage":"https://github.com/varunpal/koa-cookie#readme","gitHead":"80810f078f47ecee3fe43cd201b73b431ca61fa1","_id":"koa-cookie@1.0.0","_shasum":"7c79723dd03b97abcfe430028b700bd47a36dafb","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.4.1","_npmUser":{"name":"vpal","email":"varun1145@gmail.com"},"dist":{"shasum":"7c79723dd03b97abcfe430028b700bd47a36dafb","tarball":"https://registry.npmjs.org/koa-cookie/-/koa-cookie-1.0.0.tgz","integrity":"sha512-MCAek9ttjFFUHx1oUDxPdzTgfllOR1o/7S1OEHdmyBoZ6Kt8V1+J4JWq0RCjxD2JDhKHWZGdoLqBTRWaYOoF6Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF4ai+TbChvj2d3Ie9aPurfzutt65Ywb6UYuTy1tV5JxAiBK82p3slP3lZW99dlA4a9AESpJ3zOUUnpfe3tLuIekJw=="}]},"maintainers":[{"name":"vpal","email":"varun1145@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/koa-cookie-1.0.0.tgz_1472032698236_0.8547732988372445"}}},"readme":"# koa-cookie\nCookie parser middleware for koa.\nCan also be used with [koa-router](https://www.npmjs.com/package/koa-router).\n\n## Install\n```node\nnpm install koa-cookie --save\n```\n\n### Example\n\n```javascript\nimport Koa from 'koa';\nimport cookie from 'koa-cookie';\n\nconst app = Koa();\napp.use(cookie());\n\napp.use(async function (ctx, next) {\n  const cookies = ctx.cookie;\n  /*\n    if cookies sent are of the form: 'name=abc; age=20; token = xyz;'\n    Then ctx.cookie is an object of the form:\n    {\n      name: 'abc',\n      age: '20',\n      token: 'xyz'\n    }\n  */\n});\n\n```\n\n### Example with koa-router\n```javascript\nvar app = require('koa')();\nvar cookie = require('koa-cookie');\nvar router = require('koa-router')();\n\nrouter.use(cookie());\n \nrouter.get('/', async (context) => {\n  const cookies = context.cookie;\n  /*\n    if cookies sent are of the form: 'name=abc; age=20; token = xyz;'\n    Then ctx.cookie is an object of the form:\n    {\n      name: 'abc',\n      age: '20',\n      token: 'xyz'\n    }\n  */\n});\n \napp\n  .use(router.routes())\n  .use(router.allowedMethods());\n```","maintainers":[{"name":"vpal","email":"varun1145@gmail.com"}],"time":{"modified":"2022-06-19T09:13:39.395Z","created":"2016-08-24T09:58:18.467Z","1.0.0":"2016-08-24T09:58:18.467Z"},"homepage":"https://github.com/varunpal/koa-cookie#readme","keywords":["koa","cookie","middleware","parser","cookie-parser","koa-router"],"repository":{"type":"git","url":"git+https://github.com/varunpal/koa-cookie.git"},"author":{"name":"Varun Pal"},"bugs":{"url":"https://github.com/varunpal/koa-cookie/issues"},"license":"ISC","readmeFilename":"README.md","users":{"shakakira":true}}