{"_id":"cookie","_rev":"305063","name":"cookie","description":"HTTP server cookie parsing and serialization","dist-tags":{"latest":"0.6.0"},"maintainers":[{"name":"dougwilson","email":""}],"time":{"modified":"2024-02-17T15:43:42.000Z","created":"2012-05-28T23:56:12.299Z","0.6.0":"2023-11-07T05:01:09.857Z","0.5.0":"2022-04-11T23:31:57.179Z","0.4.2":"2022-02-02T23:29:30.095Z","0.4.1":"2020-04-22T03:23:57.297Z","0.4.0":"2019-05-16T03:26:07.333Z","0.3.1":"2016-05-27T04:32:39.156Z","0.3.0":"2016-05-27T01:00:41.646Z","0.2.4":"2016-05-21T00:32:45.246Z","0.2.3":"2015-10-26T01:02:06.233Z","0.2.2":"2015-09-17T20:40:15.826Z","0.1.5":"2015-09-17T18:52:10.481Z","0.2.1":"2015-09-17T17:08:41.911Z","0.1.4":"2015-09-17T17:03:42.289Z","0.2.0":"2015-08-14T05:15:35.455Z","0.1.3":"2015-05-20T01:22:20.719Z","0.1.2":"2014-04-16T23:00:21.566Z","0.1.1":"2014-02-23T15:56:33.086Z","0.1.0":"2013-05-01T19:18:22.075Z","0.0.6":"2013-04-09T05:59:56.056Z","0.0.5":"2012-10-29T17:26:30.049Z","0.0.4":"2012-06-21T16:27:06.621Z","0.0.3":"2012-06-06T18:50:00.041Z","0.0.2":"2012-06-01T17:57:58.161Z","0.0.1":"2012-05-29T02:15:56.897Z","0.0.0":"2012-05-28T23:56:12.299Z"},"users":{},"author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/jshttp/cookie.git"},"versions":{"0.6.0":{"name":"cookie","description":"HTTP server cookie parsing and serialization","version":"0.6.0","author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"contributors":[{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"}],"license":"MIT","keywords":["cookie","cookies"],"repository":{"type":"git","url":"git+https://github.com/jshttp/cookie.git"},"devDependencies":{"beautify-benchmark":"0.2.4","benchmark":"2.1.4","eslint":"8.53.0","eslint-plugin-markdown":"3.0.1","mocha":"10.2.0","nyc":"15.1.0","safe-buffer":"5.2.1","top-sites":"1.1.194"},"engines":{"node":">= 0.6"},"scripts":{"bench":"node benchmark/index.js","lint":"eslint .","test":"mocha --reporter spec --bail --check-leaks test/","test-ci":"nyc --reporter=lcov --reporter=text npm test","test-cov":"nyc --reporter=html --reporter=text npm test","update-bench":"node scripts/update-benchmark.js","version":"node scripts/version-history.js && git add HISTORY.md"},"_id":"cookie@0.6.0","gitHead":"38323bad3aa04bce840103ff6075bc05cc0bf884","bugs":{"url":"https://github.com/jshttp/cookie/issues"},"homepage":"https://github.com/jshttp/cookie#readme","_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"shasum":"2798b04b071b0ecbff0dbb62a505a8efa4e19051","size":8165,"noattachment":false,"key":"/cookie/-/cookie-0.6.0.tgz","tarball":"http://name.csiicloud.com:7001/cookie/download/cookie-0.6.0.tgz"},"_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"directories":{},"maintainers":[{"name":"dougwilson","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cookie_0.6.0_1699333269681_0.1654855182681345"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-11-07T05:01:09.857Z","publish_time":1699333269857,"_source_registry_name":"default","_cnpm_publish_time":1699333269857},"0.5.0":{"name":"cookie","description":"HTTP server cookie parsing and serialization","version":"0.5.0","author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"contributors":[{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"}],"license":"MIT","keywords":["cookie","cookies"],"repository":{"type":"git","url":"git+https://github.com/jshttp/cookie.git"},"devDependencies":{"beautify-benchmark":"0.2.4","benchmark":"2.1.4","eslint":"7.32.0","eslint-plugin-markdown":"2.2.1","mocha":"9.2.2","nyc":"15.1.0","safe-buffer":"5.2.1","top-sites":"1.1.97"},"engines":{"node":">= 0.6"},"scripts":{"bench":"node benchmark/index.js","lint":"eslint .","test":"mocha --reporter spec --bail --check-leaks test/","test-ci":"nyc --reporter=lcov --reporter=text npm test","test-cov":"nyc --reporter=html --reporter=text npm test","update-bench":"node scripts/update-benchmark.js","version":"node scripts/version-history.js && git add HISTORY.md"},"gitHead":"663c9aeb85c9e046ff2ad2cdec631afdd40a7965","bugs":{"url":"https://github.com/jshttp/cookie/issues"},"homepage":"https://github.com/jshttp/cookie#readme","_id":"cookie@0.5.0","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"shasum":"d1f5d71adec6558c58f389987c366aa47e994f8b","size":8056,"noattachment":false,"key":"/cookie/-/cookie-0.5.0.tgz","tarball":"http://name.csiicloud.com:7001/cookie/download/cookie-0.5.0.tgz"},"_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"directories":{},"maintainers":[{"name":"dougwilson","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cookie_0.5.0_1649719916997_0.8696374152245456"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-04-11T23:36:23.507Z","publish_time":1649719917179,"_cnpm_publish_time":1649719917179},"0.4.2":{"name":"cookie","description":"HTTP server cookie parsing and serialization","version":"0.4.2","author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"contributors":[{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"}],"license":"MIT","keywords":["cookie","cookies"],"repository":{"type":"git","url":"git+https://github.com/jshttp/cookie.git"},"devDependencies":{"beautify-benchmark":"0.2.4","benchmark":"2.1.4","eslint":"7.32.0","eslint-plugin-markdown":"2.2.1","mocha":"9.2.0","nyc":"15.1.0","top-sites":"1.1.85"},"engines":{"node":">= 0.6"},"scripts":{"bench":"node benchmark/index.js","lint":"eslint .","test":"mocha --reporter spec --bail --check-leaks --ui qunit test/","test-ci":"nyc --reporter=lcov --reporter=text npm test","test-cov":"nyc --reporter=html --reporter=text npm test","update-bench":"node scripts/update-benchmark.js","version":"node scripts/version-history.js && git add HISTORY.md"},"gitHead":"55bac40d944e65554ecce9e5d567d17fb62d9ccc","bugs":{"url":"https://github.com/jshttp/cookie/issues"},"homepage":"https://github.com/jshttp/cookie#readme","_id":"cookie@0.4.2","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"shasum":"0e41f24de5ecf317947c82fc789e06a884824432","size":6986,"noattachment":false,"key":"/cookie/-/cookie-0.4.2.tgz","tarball":"http://name.csiicloud.com:7001/cookie/download/cookie-0.4.2.tgz"},"_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"directories":{},"maintainers":[{"name":"dougwilson","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cookie_0.4.2_1643844569878_0.06540750379621363"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-02-02T23:29:39.801Z","publish_time":1643844570095,"_cnpm_publish_time":1643844570095},"0.4.1":{"name":"cookie","description":"HTTP server cookie parsing and serialization","version":"0.4.1","author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"contributors":[{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"}],"license":"MIT","keywords":["cookie","cookies"],"repository":{"type":"git","url":"git+https://github.com/jshttp/cookie.git"},"devDependencies":{"beautify-benchmark":"0.2.4","benchmark":"2.1.4","eslint":"6.8.0","eslint-plugin-markdown":"1.0.2","mocha":"7.1.1","nyc":"15.0.1"},"engines":{"node":">= 0.6"},"scripts":{"bench":"node benchmark/index.js","lint":"eslint --plugin markdown --ext js,md .","test":"mocha --reporter spec --bail --check-leaks --ui qunit test/","test-ci":"nyc --reporter=text npm test","test-cov":"nyc --reporter=html --reporter=text npm test","version":"node scripts/version-history.js && git add HISTORY.md"},"gitHead":"b22458dd9f7ca94705fd7ee25780836601b913aa","bugs":{"url":"https://github.com/jshttp/cookie/issues"},"homepage":"https://github.com/jshttp/cookie#readme","_id":"cookie@0.4.1","_nodeVersion":"13.12.0","_npmVersion":"6.14.4","dist":{"shasum":"afd713fe26ebd21ba95ceb61f9a8116e50a537d1","size":6511,"noattachment":false,"key":"/cookie/-/cookie-0.4.1.tgz","tarball":"http://name.csiicloud.com:7001/cookie/download/cookie-0.4.1.tgz"},"maintainers":[{"name":"dougwilson","email":""}],"_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cookie_0.4.1_1587525837181_0.04343373246138138"},"_hasShrinkwrap":false,"publish_time":1587525837297,"_cnpm_publish_time":1587525837297},"0.4.0":{"name":"cookie","description":"HTTP server cookie parsing and serialization","version":"0.4.0","author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"contributors":[{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"}],"license":"MIT","keywords":["cookie","cookies"],"repository":{"type":"git","url":"git+https://github.com/jshttp/cookie.git"},"devDependencies":{"beautify-benchmark":"0.2.4","benchmark":"2.1.4","eslint":"5.16.0","eslint-plugin-markdown":"1.0.0","istanbul":"0.4.5","mocha":"6.1.4"},"engines":{"node":">= 0.6"},"scripts":{"bench":"node benchmark/index.js","lint":"eslint --plugin markdown --ext js,md .","test":"mocha --reporter spec --bail --check-leaks test/","test-ci":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/","version":"node scripts/version-history.js && git add HISTORY.md"},"gitHead":"aec1177c7da67e3b3273df96cf476824dbc9ae09","bugs":{"url":"https://github.com/jshttp/cookie/issues"},"homepage":"https://github.com/jshttp/cookie#readme","_id":"cookie@0.4.0","_npmVersion":"6.4.1","_nodeVersion":"8.16.0","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"dist":{"shasum":"beb437e7022b3b6d49019d088665303ebe9c14ba","size":6407,"noattachment":false,"key":"/cookie/-/cookie-0.4.0.tgz","tarball":"http://name.csiicloud.com:7001/cookie/download/cookie-0.4.0.tgz"},"maintainers":[{"name":"dougwilson","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cookie_0.4.0_1557977167056_0.23732140409492142"},"_hasShrinkwrap":false,"publish_time":1557977167333,"_cnpm_publish_time":1557977167333},"0.3.1":{"name":"cookie","description":"HTTP server cookie parsing and serialization","version":"0.3.1","author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"contributors":[{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"}],"license":"MIT","keywords":["cookie","cookies"],"repository":{"type":"git","url":"https://github.com/jshttp/cookie"},"devDependencies":{"istanbul":"0.4.3","mocha":"1.21.5"},"files":["HISTORY.md","LICENSE","README.md","index.js"],"engines":{"node":">= 0.6"},"scripts":{"test":"mocha --reporter spec --bail --check-leaks test/","test-ci":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/"},"gitHead":"e3c77d497d66c8b8d4b677b8954c1b192a09f0b3","bugs":{"url":"https://github.com/jshttp/cookie/issues"},"homepage":"https://github.com/jshttp/cookie","_id":"cookie@0.3.1","_shasum":"e7e0a1f9ef43b4c8ba925c5c5a96e806d16873bb","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"dougwilson","email":""}],"dist":{"shasum":"e7e0a1f9ef43b4c8ba925c5c5a96e806d16873bb","size":5970,"noattachment":false,"key":"/cookie/-/cookie-0.3.1.tgz","tarball":"http://name.csiicloud.com:7001/cookie/download/cookie-0.3.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/cookie-0.3.1.tgz_1464323556714_0.6435900838114321"},"directories":{},"publish_time":1464323559156,"_cnpm_publish_time":1464323559156,"_hasShrinkwrap":false},"0.3.0":{"name":"cookie","description":"HTTP server cookie parsing and serialization","version":"0.3.0","author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"contributors":[{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"}],"license":"MIT","keywords":["cookie","cookies"],"repository":{"type":"git","url":"https://github.com/jshttp/cookie"},"devDependencies":{"istanbul":"0.4.3","mocha":"1.21.5"},"files":["HISTORY.md","LICENSE","README.md","index.js"],"engines":{"node":">= 0.6"},"scripts":{"test":"mocha --reporter spec --bail --check-leaks test/","test-ci":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/"},"gitHead":"91b733fbe29ae6fcfa305f8e8ff31a1c2e651feb","bugs":{"url":"https://github.com/jshttp/cookie/issues"},"homepage":"https://github.com/jshttp/cookie","_id":"cookie@0.3.0","_shasum":"a4bdd609d86748a5ce6c64d7ede6f4840ba434d8","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"dougwilson","email":""}],"dist":{"shasum":"a4bdd609d86748a5ce6c64d7ede6f4840ba434d8","size":5948,"noattachment":false,"key":"/cookie/-/cookie-0.3.0.tgz","tarball":"http://name.csiicloud.com:7001/cookie/download/cookie-0.3.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/cookie-0.3.0.tgz_1464310839393_0.722841773647815"},"directories":{},"publish_time":1464310841646,"_cnpm_publish_time":1464310841646,"_hasShrinkwrap":false},"0.2.4":{"name":"cookie","description":"cookie parsing and serialization","version":"0.2.4","author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"contributors":[{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"}],"license":"MIT","keywords":["cookie","cookies"],"repository":{"type":"git","url":"https://github.com/jshttp/cookie"},"devDependencies":{"istanbul":"0.4.3","mocha":"1.21.5"},"files":["HISTORY.md","LICENSE","README.md","index.js"],"engines":{"node":">= 0.6"},"scripts":{"test":"mocha --reporter spec --bail --check-leaks test/","test-ci":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/"},"gitHead":"0c6fe48e2976d66ed73c03817bb5cb10180b50ee","bugs":{"url":"https://github.com/jshttp/cookie/issues"},"homepage":"https://github.com/jshttp/cookie","_id":"cookie@0.2.4","_shasum":"a8c155aa7b9b2cf2c4d32ebc7b9a0aa288ccc6bd","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"dougwilson","email":""}],"dist":{"shasum":"a8c155aa7b9b2cf2c4d32ebc7b9a0aa288ccc6bd","size":3888,"noattachment":false,"key":"/cookie/-/cookie-0.2.4.tgz","tarball":"http://name.csiicloud.com:7001/cookie/download/cookie-0.2.4.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/cookie-0.2.4.tgz_1463790764235_0.7945549874566495"},"directories":{},"publish_time":1463790765246,"_cnpm_publish_time":1463790765246,"_hasShrinkwrap":false},"0.2.3":{"name":"cookie","description":"cookie parsing and serialization","version":"0.2.3","author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"contributors":[{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"}],"license":"MIT","keywords":["cookie","cookies"],"repository":{"type":"git","url":"https://github.com/jshttp/cookie"},"devDependencies":{"istanbul":"0.3.22","mocha":"1.21.5"},"files":["HISTORY.md","LICENSE","README.md","index.js"],"engines":{"node":">= 0.6"},"scripts":{"test":"mocha --reporter spec --bail --check-leaks test/","test-ci":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/"},"gitHead":"35326af88e9665bb8ea1be280cb827523e9360a7","bugs":{"url":"https://github.com/jshttp/cookie/issues"},"homepage":"https://github.com/jshttp/cookie","_id":"cookie@0.2.3","_shasum":"1a59536af68537a21178a01346f87cb059d2ae5c","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"dougwilson","email":""}],"dist":{"shasum":"1a59536af68537a21178a01346f87cb059d2ae5c","size":3870,"noattachment":false,"key":"/cookie/-/cookie-0.2.3.tgz","tarball":"http://name.csiicloud.com:7001/cookie/download/cookie-0.2.3.tgz"},"directories":{},"publish_time":1445821326233,"_cnpm_publish_time":1445821326233,"_hasShrinkwrap":false},"0.2.2":{"name":"cookie","description":"cookie parsing and serialization","version":"0.2.2","author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"contributors":[{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"}],"license":"MIT","keywords":["cookie","cookies"],"repository":{"type":"git","url":"https://github.com/jshttp/cookie"},"devDependencies":{"istanbul":"0.3.20","mocha":"1.21.5"},"files":["HISTORY.md","LICENSE","README.md","index.js"],"engines":{"node":">= 0.6"},"scripts":{"test":"mocha --reporter spec --bail --check-leaks test/","test-ci":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/"},"gitHead":"9b481be547730c5f487364b720ab298d097541d5","bugs":{"url":"https://github.com/jshttp/cookie/issues"},"homepage":"https://github.com/jshttp/cookie","_id":"cookie@0.2.2","_shasum":"579ef8bc9b2d6f7e975a16bf4164d572e752e540","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"dougwilson","email":""}],"dist":{"shasum":"579ef8bc9b2d6f7e975a16bf4164d572e752e540","size":3837,"noattachment":false,"key":"/cookie/-/cookie-0.2.2.tgz","tarball":"http://name.csiicloud.com:7001/cookie/download/cookie-0.2.2.tgz"},"directories":{},"publish_time":1442522415826,"_cnpm_publish_time":1442522415826,"_hasShrinkwrap":false},"0.1.5":{"name":"cookie","description":"cookie parsing and serialization","version":"0.1.5","author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"contributors":[{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"}],"license":"MIT","keywords":["cookie","cookies"],"repository":{"type":"git","url":"https://github.com/jshttp/cookie"},"devDependencies":{"istanbul":"0.3.20","mocha":"1.21.5"},"files":["HISTORY.md","LICENSE","README.md","index.js"],"engines":{"node":">= 0.6"},"scripts":{"test":"mocha --reporter spec --bail --check-leaks test/","test-ci":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/"},"gitHead":"0dfc4876575cef2609cdc1082fccf832743822c2","bugs":{"url":"https://github.com/jshttp/cookie/issues"},"homepage":"https://github.com/jshttp/cookie","_id":"cookie@0.1.5","_shasum":"6ab9948a4b1ae21952cd2588530a4722d4044d7c","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"dougwilson","email":""}],"dist":{"shasum":"6ab9948a4b1ae21952cd2588530a4722d4044d7c","size":3746,"noattachment":false,"key":"/cookie/-/cookie-0.1.5.tgz","tarball":"http://name.csiicloud.com:7001/cookie/download/cookie-0.1.5.tgz"},"directories":{},"publish_time":1442515930481,"_cnpm_publish_time":1442515930481,"_hasShrinkwrap":false},"0.2.1":{"name":"cookie","description":"cookie parsing and serialization","version":"0.2.1","author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"contributors":[{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"}],"license":"MIT","keywords":["cookie","cookies"],"repository":{"type":"git","url":"https://github.com/jshttp/cookie"},"devDependencies":{"istanbul":"0.3.20","mocha":"1.21.5"},"files":["HISTORY.md","LICENSE","README.md","index.js"],"engines":{"node":">= 0.6"},"scripts":{"test":"mocha --reporter spec --bail --check-leaks test/","test-ci":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/"},"gitHead":"f3b5262b23b8eb64c9cbebc6f6271894889b14b1","bugs":{"url":"https://github.com/jshttp/cookie/issues"},"homepage":"https://github.com/jshttp/cookie","_id":"cookie@0.2.1","_shasum":"e1bc7c07d1985c17ad7347502bac1a0eb072ac9a","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"dougwilson","email":""}],"dist":{"shasum":"e1bc7c07d1985c17ad7347502bac1a0eb072ac9a","size":3751,"noattachment":false,"key":"/cookie/-/cookie-0.2.1.tgz","tarball":"http://name.csiicloud.com:7001/cookie/download/cookie-0.2.1.tgz"},"directories":{},"publish_time":1442509721911,"_cnpm_publish_time":1442509721911,"_hasShrinkwrap":false},"0.1.4":{"name":"cookie","description":"cookie parsing and serialization","version":"0.1.4","author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"contributors":[{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"}],"license":"MIT","keywords":["cookie","cookies"],"repository":{"type":"git","url":"https://github.com/jshttp/cookie"},"devDependencies":{"istanbul":"0.3.20","mocha":"1.21.5"},"files":["HISTORY.md","LICENSE","README.md","index.js"],"engines":{"node":">= 0.6"},"scripts":{"test":"mocha --reporter spec --bail --check-leaks test/","test-ci":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/"},"gitHead":"337c0f1be395c1b62b8cae4306a745012c62a989","bugs":{"url":"https://github.com/jshttp/cookie/issues"},"homepage":"https://github.com/jshttp/cookie","_id":"cookie@0.1.4","_shasum":"4955c0bd32fffa83b7433586185875876ea04e4b","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"dougwilson","email":""}],"dist":{"shasum":"4955c0bd32fffa83b7433586185875876ea04e4b","size":3677,"noattachment":false,"key":"/cookie/-/cookie-0.1.4.tgz","tarball":"http://name.csiicloud.com:7001/cookie/download/cookie-0.1.4.tgz"},"directories":{},"publish_time":1442509422289,"_cnpm_publish_time":1442509422289,"_hasShrinkwrap":false},"0.2.0":{"name":"cookie","description":"cookie parsing and serialization","version":"0.2.0","author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"license":"MIT","keywords":["cookie","cookies"],"repository":{"type":"git","url":"https://github.com/jshttp/cookie"},"devDependencies":{"istanbul":"0.3.17","mocha":"1.21.5"},"files":["HISTORY.md","LICENSE","README.md","index.js"],"engines":{"node":">= 0.6"},"scripts":{"test":"mocha --reporter spec --bail --check-leaks test/","test-ci":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/"},"gitHead":"e0d36be803099855dfa323de092eed97bec155bd","bugs":{"url":"https://github.com/jshttp/cookie/issues"},"homepage":"https://github.com/jshttp/cookie","_id":"cookie@0.2.0","_shasum":"9708beeaa361857de7d16516fea779572625caad","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"dougwilson","email":""}],"dist":{"shasum":"9708beeaa361857de7d16516fea779572625caad","size":3423,"noattachment":false,"key":"/cookie/-/cookie-0.2.0.tgz","tarball":"http://name.csiicloud.com:7001/cookie/download/cookie-0.2.0.tgz"},"directories":{},"publish_time":1439529335455,"_cnpm_publish_time":1439529335455,"_hasShrinkwrap":false},"0.1.3":{"name":"cookie","description":"cookie parsing and serialization","version":"0.1.3","author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"license":"MIT","keywords":["cookie","cookies"],"repository":{"type":"git","url":"https://github.com/jshttp/cookie"},"devDependencies":{"istanbul":"0.3.9","mocha":"1.x.x"},"files":["LICENSE","README.md","index.js"],"engines":{"node":"*"},"scripts":{"test":"mocha --reporter spec --bail --check-leaks test/","test-ci":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/"},"gitHead":"f46097723c16f920a7b9759e154c34792e1d1a3b","bugs":{"url":"https://github.com/jshttp/cookie/issues"},"homepage":"https://github.com/jshttp/cookie","_id":"cookie@0.1.3","_shasum":"e734a5c1417fce472d5aef82c381cabb64d1a435","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"dougwilson","email":""}],"dist":{"shasum":"e734a5c1417fce472d5aef82c381cabb64d1a435","size":2835,"noattachment":false,"key":"/cookie/-/cookie-0.1.3.tgz","tarball":"http://name.csiicloud.com:7001/cookie/download/cookie-0.1.3.tgz"},"directories":{},"publish_time":1432084940719,"_cnpm_publish_time":1432084940719,"_hasShrinkwrap":false},"0.1.2":{"author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"name":"cookie","description":"cookie parsing and serialization","version":"0.1.2","repository":{"type":"git","url":"git://github.com/shtylman/node-cookie.git"},"keywords":["cookie","cookies"],"main":"index.js","scripts":{"test":"mocha"},"dependencies":{},"devDependencies":{"mocha":"1.x.x"},"optionalDependencies":{},"engines":{"node":"*"},"bugs":{"url":"https://github.com/shtylman/node-cookie/issues"},"homepage":"https://github.com/shtylman/node-cookie","_id":"cookie@0.1.2","dist":{"shasum":"72fec3d24e48a3432073d90c12642005061004b1","size":2466,"noattachment":false,"key":"/cookie/-/cookie-0.1.2.tgz","tarball":"http://name.csiicloud.com:7001/cookie/download/cookie-0.1.2.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"shtylman","email":"shtylman@gmail.com"},"maintainers":[{"name":"dougwilson","email":""}],"directories":{},"publish_time":1397689221566,"_cnpm_publish_time":1397689221566,"_hasShrinkwrap":false},"0.1.1":{"author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"name":"cookie","description":"cookie parsing and serialization","version":"0.1.1","repository":{"type":"git","url":"git://github.com/shtylman/node-cookie.git"},"keywords":["cookie","cookies"],"main":"index.js","scripts":{"test":"mocha"},"dependencies":{},"devDependencies":{"mocha":"1.x.x"},"optionalDependencies":{},"engines":{"node":"*"},"bugs":{"url":"https://github.com/shtylman/node-cookie/issues"},"homepage":"https://github.com/shtylman/node-cookie","_id":"cookie@0.1.1","dist":{"shasum":"cbd4b537aa65f800b6c66ead2520ba8d6afbdf54","size":3266,"noattachment":false,"key":"/cookie/-/cookie-0.1.1.tgz","tarball":"http://name.csiicloud.com:7001/cookie/download/cookie-0.1.1.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"shtylman","email":"shtylman@gmail.com"},"maintainers":[{"name":"dougwilson","email":""}],"directories":{},"publish_time":1393170993086,"_hasShrinkwrap":false,"_cnpm_publish_time":1393170993086},"0.1.0":{"author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"name":"cookie","description":"cookie parsing and serialization","version":"0.1.0","repository":{"type":"git","url":"git://github.com/shtylman/node-cookie.git"},"keywords":["cookie","cookies"],"main":"index.js","scripts":{"test":"mocha"},"dependencies":{},"devDependencies":{"mocha":"1.x.x"},"optionalDependencies":{},"engines":{"node":"*"},"_id":"cookie@0.1.0","dist":{"shasum":"90eb469ddce905c866de687efc43131d8801f9d0","size":3139,"noattachment":false,"key":"/cookie/-/cookie-0.1.0.tgz","tarball":"http://name.csiicloud.com:7001/cookie/download/cookie-0.1.0.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"shtylman","email":"shtylman@gmail.com"},"maintainers":[{"name":"dougwilson","email":""}],"directories":{},"publish_time":1367435902075,"_hasShrinkwrap":false,"_cnpm_publish_time":1367435902075},"0.0.6":{"author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"name":"cookie","description":"cookie parsing and serialization","version":"0.0.6","repository":{"type":"git","url":"git://github.com/shtylman/node-cookie.git"},"keywords":["cookie","cookies"],"main":"index.js","scripts":{"test":"mocha"},"dependencies":{},"devDependencies":{"mocha":"1.x.x"},"optionalDependencies":{},"engines":{"node":"*"},"_id":"cookie@0.0.6","dist":{"shasum":"7bc6bb50205dcb98cf13ad09d6c60bc523f6fcb7","size":3062,"noattachment":false,"key":"/cookie/-/cookie-0.0.6.tgz","tarball":"http://name.csiicloud.com:7001/cookie/download/cookie-0.0.6.tgz"},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"shtylman","email":"shtylman@gmail.com"},"maintainers":[{"name":"dougwilson","email":""}],"directories":{},"publish_time":1365487196056,"_hasShrinkwrap":false,"_cnpm_publish_time":1365487196056},"0.0.5":{"author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"name":"cookie","description":"cookie parsing and serialization","version":"0.0.5","repository":{"type":"git","url":"git://github.com/shtylman/node-cookie.git"},"keywords":["cookie","cookies"],"main":"index.js","scripts":{"test":"mocha"},"dependencies":{},"devDependencies":{"mocha":"1.x.x"},"optionalDependencies":{},"engines":{"node":"*"},"_id":"cookie@0.0.5","dist":{"shasum":"f9acf9db57eb7568c9fcc596256b7bb22e307c81","size":2309,"noattachment":false,"key":"/cookie/-/cookie-0.0.5.tgz","tarball":"http://name.csiicloud.com:7001/cookie/download/cookie-0.0.5.tgz"},"maintainers":[{"name":"dougwilson","email":""}],"directories":{},"publish_time":1351531590049,"_hasShrinkwrap":false,"_cnpm_publish_time":1351531590049},"0.0.4":{"author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"name":"cookie","description":"cookie parsing and serialization","version":"0.0.4","repository":{"type":"git","url":"git://github.com/shtylman/node-cookie.git"},"keywords":["cookie","cookies"],"main":"index.js","scripts":{"test":"mocha"},"dependencies":{},"devDependencies":{"mocha":"1.x.x"},"optionalDependencies":{},"engines":{"node":"*"},"_npmUser":{"name":"shtylman","email":"shtylman@gmail.com"},"_id":"cookie@0.0.4","_engineSupported":true,"_npmVersion":"1.1.24","_nodeVersion":"v0.6.20-pre","_defaultsLoaded":true,"dist":{"shasum":"5456bd47aee2666eac976ea80a6105940483fe98","size":2254,"noattachment":false,"key":"/cookie/-/cookie-0.0.4.tgz","tarball":"http://name.csiicloud.com:7001/cookie/download/cookie-0.0.4.tgz"},"maintainers":[{"name":"dougwilson","email":""}],"directories":{},"publish_time":1340296026621,"_hasShrinkwrap":false,"_cnpm_publish_time":1340296026621},"0.0.3":{"author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"name":"cookie","description":"cookie parsing and serialization","version":"0.0.3","repository":{"type":"git","url":"git://github.com/shtylman/node-cookie.git"},"keywords":["cookie","cookies"],"main":"index.js","scripts":{"test":"mocha"},"dependencies":{},"devDependencies":{"mocha":"1.x.x"},"optionalDependencies":{},"engines":{"node":"*"},"_npmUser":{"name":"shtylman","email":"shtylman@gmail.com"},"_id":"cookie@0.0.3","_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.7.10-pre","_defaultsLoaded":true,"dist":{"shasum":"732b0e64cb77186954f5e36b0b6bcfd062a12e91","size":2350,"noattachment":false,"key":"/cookie/-/cookie-0.0.3.tgz","tarball":"http://name.csiicloud.com:7001/cookie/download/cookie-0.0.3.tgz"},"maintainers":[{"name":"dougwilson","email":""}],"directories":{},"publish_time":1339008600041,"_hasShrinkwrap":false,"_cnpm_publish_time":1339008600041},"0.0.2":{"author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"name":"cookie","description":"cookie parsing and serialization","version":"0.0.2","repository":{"type":"git","url":"git://github.com/shtylman/node-cookie.git"},"keywords":["cookie","cookies"],"main":"index.js","scripts":{"test":"mocha"},"dependencies":{},"devDependencies":{"mocha":"1.x.x"},"optionalDependencies":{},"engines":{"node":"*"},"_npmUser":{"name":"shtylman","email":"shtylman@gmail.com"},"_id":"cookie@0.0.2","_engineSupported":true,"_npmVersion":"1.1.12","_nodeVersion":"v0.6.14","_defaultsLoaded":true,"dist":{"shasum":"17aedf62bc6af53745fecb55c45c3f097c2e858b","size":2315,"noattachment":false,"key":"/cookie/-/cookie-0.0.2.tgz","tarball":"http://name.csiicloud.com:7001/cookie/download/cookie-0.0.2.tgz"},"maintainers":[{"name":"dougwilson","email":""}],"directories":{},"publish_time":1338573478161,"_hasShrinkwrap":false,"_cnpm_publish_time":1338573478161},"0.0.1":{"author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"name":"cookie","description":"cookie parsing and serialization","version":"0.0.1","repository":{"type":"git","url":"git://github.com/shtylman/node-cookie.git"},"keywords":["cookie","cookies"],"main":"index.js","scripts":{"test":"mocha"},"dependencies":{},"devDependencies":{"mocha":"1.x.x"},"optionalDependencies":{},"engines":{"node":"*"},"_npmUser":{"name":"shtylman","email":"shtylman@gmail.com"},"_id":"cookie@0.0.1","_engineSupported":true,"_npmVersion":"1.1.12","_nodeVersion":"v0.6.14","_defaultsLoaded":true,"dist":{"shasum":"3162dd34ea833740e2e0d6e7129f2dcd55dcf7ed","size":2298,"noattachment":false,"key":"/cookie/-/cookie-0.0.1.tgz","tarball":"http://name.csiicloud.com:7001/cookie/download/cookie-0.0.1.tgz"},"maintainers":[{"name":"dougwilson","email":""}],"directories":{},"publish_time":1338257756897,"_hasShrinkwrap":false,"_cnpm_publish_time":1338257756897},"0.0.0":{"author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"name":"cookie","description":"cookie parsing and serialization","version":"0.0.0","repository":{"type":"git","url":"git://github.com/shtylman/node-cookie.git"},"keywords":["cookie","cookies"],"main":"index.js","scripts":{"test":"mocha"},"dependencies":{},"devDependencies":{"mocha":"1.x.x"},"optionalDependencies":{},"engines":{"node":"*"},"_npmUser":{"name":"shtylman","email":"shtylman@gmail.com"},"_id":"cookie@0.0.0","_engineSupported":true,"_npmVersion":"1.1.12","_nodeVersion":"v0.6.14","_defaultsLoaded":true,"dist":{"shasum":"a134b9c981df85c8a67b1620be5a36c0db1bdc63","size":2012,"noattachment":false,"key":"/cookie/-/cookie-0.0.0.tgz","tarball":"http://name.csiicloud.com:7001/cookie/download/cookie-0.0.0.tgz"},"maintainers":[{"name":"dougwilson","email":""}],"directories":{},"publish_time":1338249372299,"_hasShrinkwrap":false,"_cnpm_publish_time":1338249372299}},"readme":"# cookie\n\n[![NPM Version][npm-version-image]][npm-url]\n[![NPM Downloads][npm-downloads-image]][npm-url]\n[![Node.js Version][node-image]][node-url]\n[![Build Status][ci-image]][ci-url]\n[![Coverage Status][coveralls-image]][coveralls-url]\n\nBasic HTTP cookie parser and serializer for HTTP servers.\n\n## Installation\n\nThis is a [Node.js](https://nodejs.org/en/) module available through the\n[npm registry](https://www.npmjs.com/). Installation is done using the\n[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):\n\n```sh\n$ npm install cookie\n```\n\n## API\n\n```js\nvar cookie = require('cookie');\n```\n\n### cookie.parse(str, options)\n\nParse an HTTP `Cookie` header string and returning an object of all cookie name-value pairs.\nThe `str` argument is the string representing a `Cookie` header value and `options` is an\noptional object containing additional parsing options.\n\n```js\nvar cookies = cookie.parse('foo=bar; equation=E%3Dmc%5E2');\n// { foo: 'bar', equation: 'E=mc^2' }\n```\n\n#### Options\n\n`cookie.parse` accepts these properties in the options object.\n\n##### decode\n\nSpecifies a function that will be used to decode a cookie's value. Since the value of a cookie\nhas a limited character set (and must be a simple string), this function can be used to decode\na previously-encoded cookie value into a JavaScript string or other object.\n\nThe default function is the global `decodeURIComponent`, which will decode any URL-encoded\nsequences into their byte representations.\n\n**note** if an error is thrown from this function, the original, non-decoded cookie value will\nbe returned as the cookie's value.\n\n### cookie.serialize(name, value, options)\n\nSerialize a cookie name-value pair into a `Set-Cookie` header string. The `name` argument is the\nname for the cookie, the `value` argument is the value to set the cookie to, and the `options`\nargument is an optional object containing additional serialization options.\n\n```js\nvar setCookie = cookie.serialize('foo', 'bar');\n// foo=bar\n```\n\n#### Options\n\n`cookie.serialize` accepts these properties in the options object.\n\n##### domain\n\nSpecifies the value for the [`Domain` `Set-Cookie` attribute][rfc-6265-5.2.3]. By default, no\ndomain is set, and most clients will consider the cookie to apply to only the current domain.\n\n##### encode\n\nSpecifies a function that will be used to encode a cookie's value. Since value of a cookie\nhas a limited character set (and must be a simple string), this function can be used to encode\na value into a string suited for a cookie's value.\n\nThe default function is the global `encodeURIComponent`, which will encode a JavaScript string\ninto UTF-8 byte sequences and then URL-encode any that fall outside of the cookie range.\n\n##### expires\n\nSpecifies the `Date` object to be the value for the [`Expires` `Set-Cookie` attribute][rfc-6265-5.2.1].\nBy default, no expiration is set, and most clients will consider this a \"non-persistent cookie\" and\nwill delete it on a condition like exiting a web browser application.\n\n**note** the [cookie storage model specification][rfc-6265-5.3] states that if both `expires` and\n`maxAge` are set, then `maxAge` takes precedence, but it is possible not all clients by obey this,\nso if both are set, they should point to the same date and time.\n\n##### httpOnly\n\nSpecifies the `boolean` value for the [`HttpOnly` `Set-Cookie` attribute][rfc-6265-5.2.6]. When truthy,\nthe `HttpOnly` attribute is set, otherwise it is not. By default, the `HttpOnly` attribute is not set.\n\n**note** be careful when setting this to `true`, as compliant clients will not allow client-side\nJavaScript to see the cookie in `document.cookie`.\n\n##### maxAge\n\nSpecifies the `number` (in seconds) to be the value for the [`Max-Age` `Set-Cookie` attribute][rfc-6265-5.2.2].\nThe given number will be converted to an integer by rounding down. By default, no maximum age is set.\n\n**note** the [cookie storage model specification][rfc-6265-5.3] states that if both `expires` and\n`maxAge` are set, then `maxAge` takes precedence, but it is possible not all clients by obey this,\nso if both are set, they should point to the same date and time.\n\n##### partitioned\n\nSpecifies the `boolean` value for the [`Partitioned` `Set-Cookie`](rfc-cutler-httpbis-partitioned-cookies)\nattribute. When truthy, the `Partitioned` attribute is set, otherwise it is not. By default, the\n`Partitioned` attribute is not set.\n\n**note** This is an attribute that has not yet been fully standardized, and may change in the future.\nThis also means many clients may ignore this attribute until they understand it.\n\nMore information about can be found in [the proposal](https://github.com/privacycg/CHIPS).\n\n##### path\n\nSpecifies the value for the [`Path` `Set-Cookie` attribute][rfc-6265-5.2.4]. By default, the path\nis considered the [\"default path\"][rfc-6265-5.1.4].\n\n##### priority\n\nSpecifies the `string` to be the value for the [`Priority` `Set-Cookie` attribute][rfc-west-cookie-priority-00-4.1].\n\n  - `'low'` will set the `Priority` attribute to `Low`.\n  - `'medium'` will set the `Priority` attribute to `Medium`, the default priority when not set.\n  - `'high'` will set the `Priority` attribute to `High`.\n\nMore information about the different priority levels can be found in\n[the specification][rfc-west-cookie-priority-00-4.1].\n\n**note** This is an attribute that has not yet been fully standardized, and may change in the future.\nThis also means many clients may ignore this attribute until they understand it.\n\n##### sameSite\n\nSpecifies the `boolean` or `string` to be the value for the [`SameSite` `Set-Cookie` attribute][rfc-6265bis-09-5.4.7].\n\n  - `true` will set the `SameSite` attribute to `Strict` for strict same site enforcement.\n  - `false` will not set the `SameSite` attribute.\n  - `'lax'` will set the `SameSite` attribute to `Lax` for lax same site enforcement.\n  - `'none'` will set the `SameSite` attribute to `None` for an explicit cross-site cookie.\n  - `'strict'` will set the `SameSite` attribute to `Strict` for strict same site enforcement.\n\nMore information about the different enforcement levels can be found in\n[the specification][rfc-6265bis-09-5.4.7].\n\n**note** This is an attribute that has not yet been fully standardized, and may change in the future.\nThis also means many clients may ignore this attribute until they understand it.\n\n##### secure\n\nSpecifies the `boolean` value for the [`Secure` `Set-Cookie` attribute][rfc-6265-5.2.5]. When truthy,\nthe `Secure` attribute is set, otherwise it is not. By default, the `Secure` attribute is not set.\n\n**note** be careful when setting this to `true`, as compliant clients will not send the cookie back to\nthe server in the future if the browser does not have an HTTPS connection.\n\n## Example\n\nThe following example uses this module in conjunction with the Node.js core HTTP server\nto prompt a user for their name and display it back on future visits.\n\n```js\nvar cookie = require('cookie');\nvar escapeHtml = require('escape-html');\nvar http = require('http');\nvar url = require('url');\n\nfunction onRequest(req, res) {\n  // Parse the query string\n  var query = url.parse(req.url, true, true).query;\n\n  if (query && query.name) {\n    // Set a new cookie with the name\n    res.setHeader('Set-Cookie', cookie.serialize('name', String(query.name), {\n      httpOnly: true,\n      maxAge: 60 * 60 * 24 * 7 // 1 week\n    }));\n\n    // Redirect back after setting cookie\n    res.statusCode = 302;\n    res.setHeader('Location', req.headers.referer || '/');\n    res.end();\n    return;\n  }\n\n  // Parse the cookies on the request\n  var cookies = cookie.parse(req.headers.cookie || '');\n\n  // Get the visitor name set in the cookie\n  var name = cookies.name;\n\n  res.setHeader('Content-Type', 'text/html; charset=UTF-8');\n\n  if (name) {\n    res.write('<p>Welcome back, <b>' + escapeHtml(name) + '</b>!</p>');\n  } else {\n    res.write('<p>Hello, new visitor!</p>');\n  }\n\n  res.write('<form method=\"GET\">');\n  res.write('<input placeholder=\"enter your name\" name=\"name\"> <input type=\"submit\" value=\"Set Name\">');\n  res.end('</form>');\n}\n\nhttp.createServer(onRequest).listen(3000);\n```\n\n## Testing\n\n```sh\n$ npm test\n```\n\n## Benchmark\n\n```\n$ npm run bench\n\n> cookie@0.5.0 bench\n> node benchmark/index.js\n\n  node@18.18.2\n  acorn@8.10.0\n  ada@2.6.0\n  ares@1.19.1\n  brotli@1.0.9\n  cldr@43.1\n  icu@73.2\n  llhttp@6.0.11\n  modules@108\n  napi@9\n  nghttp2@1.57.0\n  nghttp3@0.7.0\n  ngtcp2@0.8.1\n  openssl@3.0.10+quic\n  simdutf@3.2.14\n  tz@2023c\n  undici@5.26.3\n  unicode@15.0\n  uv@1.44.2\n  uvwasi@0.0.18\n  v8@10.2.154.26-node.26\n  zlib@1.2.13.1-motley\n\n> node benchmark/parse-top.js\n\n  cookie.parse - top sites\n\n  14 tests completed.\n\n  parse accounts.google.com x 2,588,913 ops/sec ±0.74% (186 runs sampled)\n  parse apple.com           x 2,370,002 ops/sec ±0.69% (186 runs sampled)\n  parse cloudflare.com      x 2,213,102 ops/sec ±0.88% (188 runs sampled)\n  parse docs.google.com     x 2,194,157 ops/sec ±1.03% (184 runs sampled)\n  parse drive.google.com    x 2,265,084 ops/sec ±0.79% (187 runs sampled)\n  parse en.wikipedia.org    x   457,099 ops/sec ±0.81% (186 runs sampled)\n  parse linkedin.com        x   504,407 ops/sec ±0.89% (186 runs sampled)\n  parse maps.google.com     x 1,230,959 ops/sec ±0.98% (186 runs sampled)\n  parse microsoft.com       x   926,294 ops/sec ±0.88% (184 runs sampled)\n  parse play.google.com     x 2,311,338 ops/sec ±0.83% (185 runs sampled)\n  parse support.google.com  x 1,508,850 ops/sec ±0.86% (186 runs sampled)\n  parse www.google.com      x 1,022,582 ops/sec ±1.32% (182 runs sampled)\n  parse youtu.be            x   332,136 ops/sec ±1.02% (185 runs sampled)\n  parse youtube.com         x   323,833 ops/sec ±0.77% (183 runs sampled)\n\n> node benchmark/parse.js\n\n  cookie.parse - generic\n\n  6 tests completed.\n\n  simple      x 3,214,032 ops/sec ±1.61% (183 runs sampled)\n  decode      x   587,237 ops/sec ±1.16% (187 runs sampled)\n  unquote     x 2,954,618 ops/sec ±1.35% (183 runs sampled)\n  duplicates  x   857,008 ops/sec ±0.89% (187 runs sampled)\n  10 cookies  x   292,133 ops/sec ±0.89% (187 runs sampled)\n  100 cookies x    22,610 ops/sec ±0.68% (187 runs sampled)\n```\n\n## References\n\n- [RFC 6265: HTTP State Management Mechanism][rfc-6265]\n- [Same-site Cookies][rfc-6265bis-09-5.4.7]\n\n[rfc-cutler-httpbis-partitioned-cookies]: https://tools.ietf.org/html/draft-cutler-httpbis-partitioned-cookies/\n[rfc-west-cookie-priority-00-4.1]: https://tools.ietf.org/html/draft-west-cookie-priority-00#section-4.1\n[rfc-6265bis-09-5.4.7]: https://tools.ietf.org/html/draft-ietf-httpbis-rfc6265bis-09#section-5.4.7\n[rfc-6265]: https://tools.ietf.org/html/rfc6265\n[rfc-6265-5.1.4]: https://tools.ietf.org/html/rfc6265#section-5.1.4\n[rfc-6265-5.2.1]: https://tools.ietf.org/html/rfc6265#section-5.2.1\n[rfc-6265-5.2.2]: https://tools.ietf.org/html/rfc6265#section-5.2.2\n[rfc-6265-5.2.3]: https://tools.ietf.org/html/rfc6265#section-5.2.3\n[rfc-6265-5.2.4]: https://tools.ietf.org/html/rfc6265#section-5.2.4\n[rfc-6265-5.2.5]: https://tools.ietf.org/html/rfc6265#section-5.2.5\n[rfc-6265-5.2.6]: https://tools.ietf.org/html/rfc6265#section-5.2.6\n[rfc-6265-5.3]: https://tools.ietf.org/html/rfc6265#section-5.3\n\n## License\n\n[MIT](LICENSE)\n\n[ci-image]: https://badgen.net/github/checks/jshttp/cookie/master?label=ci\n[ci-url]: https://github.com/jshttp/cookie/actions/workflows/ci.yml\n[coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/cookie/master\n[coveralls-url]: https://coveralls.io/r/jshttp/cookie?branch=master\n[node-image]: https://badgen.net/npm/node/cookie\n[node-url]: https://nodejs.org/en/download\n[npm-downloads-image]: https://badgen.net/npm/dm/cookie\n[npm-url]: https://npmjs.org/package/cookie\n[npm-version-image]: https://badgen.net/npm/v/cookie\n","_attachments":{},"homepage":"https://github.com/jshttp/cookie#readme","bugs":{"url":"https://github.com/jshttp/cookie/issues"},"license":"MIT"}