{"id":13716684,"url":"https://github.com/zakjholt/micro-cookie","last_synced_at":"2025-05-07T06:30:51.537Z","repository":{"id":57296395,"uuid":"95033277","full_name":"zakjholt/micro-cookie","owner":"zakjholt","description":"A package to parse out request cookies","archived":false,"fork":false,"pushed_at":"2024-10-05T05:57:01.000Z","size":11,"stargazers_count":3,"open_issues_count":2,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T08:41:57.399Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zakjholt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-21T18:17:43.000Z","updated_at":"2019-09-04T16:32:30.000Z","dependencies_parsed_at":"2022-09-07T03:20:51.875Z","dependency_job_id":null,"html_url":"https://github.com/zakjholt/micro-cookie","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zakjholt%2Fmicro-cookie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zakjholt%2Fmicro-cookie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zakjholt%2Fmicro-cookie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zakjholt%2Fmicro-cookie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zakjholt","download_url":"https://codeload.github.com/zakjholt/micro-cookie/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252826659,"owners_count":21810161,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T00:01:13.310Z","updated_at":"2025-05-07T06:30:51.246Z","avatar_url":"https://github.com/zakjholt.png","language":"JavaScript","funding_links":[],"categories":["Modules"],"sub_categories":["Utilities"],"readme":"\u003cp align=\"center\"\u003e\u003cimg src='https://raw.githubusercontent.com/alexfreska/micro-cookie/master/cookie.png'\u003e\u003c/p\u003e\n\u003ch2 align=\"center\"\u003emicro-cookie\u003c/h2\u003e\n\u003cp align=\"center\"\u003ecookie parser for \u003ca href=\"https://github.com/zeit/micro\"\u003ezeit's\u003c/a\u003e micro\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\u003ci\u003eParses request cookies and puts the object in req.cookies\u003c/a\u003e\u003c/i\u003e\u003c/p\u003e\n\n## Installation\n```sh\nyarn add micro-cookie\n```\n\n## Usage\n```javascript\nconst parseCookies = require('micro-cookie')\n\nmodule.exports = parseCookies(async function(req, res) {\n  return 'Hello World!'\n})\n```\n\n## With other micro plugins\n\n```javascript\nconst visualize = require('micro-visualize')\nconst cors = require('micro-cors')\nconst cookieParse = require('micro-cookie')\nconst { send } = require('micro')\n\nmodule.exports = visualize(cors(cookieParse(async function(req, res) {\n  const responseMessage = {\n    message: 'hello world!',\n    cookies: req.cookies\n  }\n  send(res, 200, responseMessage)\n})))\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzakjholt%2Fmicro-cookie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzakjholt%2Fmicro-cookie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzakjholt%2Fmicro-cookie/lists"}