{"id":15118163,"url":"https://github.com/unjs/cookie-es","last_synced_at":"2025-06-10T22:41:39.146Z","repository":{"id":42361548,"uuid":"430894263","full_name":"unjs/cookie-es","owner":"unjs","description":"🍪 Cookie and Set-Cookie parser and serializer","archived":false,"fork":false,"pushed_at":"2025-01-16T23:27:19.000Z","size":510,"stargazers_count":173,"open_issues_count":8,"forks_count":9,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-17T00:25:06.119Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/unjs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-22T23:16:35.000Z","updated_at":"2025-01-10T12:31:20.000Z","dependencies_parsed_at":"2024-02-15T14:57:08.826Z","dependency_job_id":"6f30b31a-90ee-4dc7-b3d0-c61ec34ba824","html_url":"https://github.com/unjs/cookie-es","commit_stats":{"total_commits":2,"total_committers":2,"mean_commits":1.0,"dds":0.5,"last_synced_commit":"9b7a900f8c2be162f559dcd2f46f66256c9251d4"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unjs%2Fcookie-es","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unjs%2Fcookie-es/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unjs%2Fcookie-es/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unjs%2Fcookie-es/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unjs","download_url":"https://codeload.github.com/unjs/cookie-es/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234470313,"owners_count":18838628,"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-09-26T01:46:09.312Z","updated_at":"2025-06-10T22:41:39.134Z","avatar_url":"https://github.com/unjs.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# 🍪 cookie-es\n\n\u003c!-- automd:badges bundlejs packagephobia codecov --\u003e\n\n[![npm version](https://img.shields.io/npm/v/cookie-es)](https://npmjs.com/package/cookie-es)\n[![npm downloads](https://img.shields.io/npm/dm/cookie-es)](https://npm.chart.dev/cookie-es)\n[![bundle size](https://img.shields.io/bundlejs/size/cookie-es)](https://bundlejs.com/?q=cookie-es)\n[![install size](https://badgen.net/packagephobia/install/cookie-es)](https://packagephobia.com/result?p=cookie-es)\n[![codecov](https://img.shields.io/codecov/c/gh/unjs/cookie-es)](https://codecov.io/gh/unjs/cookie-es)\n\n\u003c!-- /automd --\u003e\n\nESM ready [`Cookie`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cookie) and [`Set-Cookie`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie) parser and serializer based on [cookie](https://github.com/jshttp/cookie) and [set-cookie-parser](https://github.com/nfriedly/set-cookie-parser) with built-in types.\n\n## Usage\n\nInstall:\n\n```sh\n# ✨ Auto-detect (npm, yarn, pnpm, bun, deno)\nnpx nypm install cookie-es\n```\n\nImport:\n\n**ESM** (Node.js, Bun, Deno)\n\n```js\nimport {\n  parse,\n  serialize,\n  parseSetCookie,\n  splitSetCookieString,\n} from \"cookie-es\";\n```\n\n**CDN** (Deno, Bun and Browsers)\n\n```js\nimport {\n  parse,\n  serialize,\n  parseSetCookie,\n  splitSetCookieString,\n} from \"https://esm.sh/cookie-es\";\n```\n\n## License\n\n[MIT](./LICENSE)\n\nBased on [jshttp/cookie](https://github.com/jshttp/cookie) (Roman Shtylman and hristopher Wilson) and [nfriedly/set-cookie-parser](https://github.com/nfriedly/set-cookie-parser) (Nathan Friedly).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funjs%2Fcookie-es","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funjs%2Fcookie-es","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funjs%2Fcookie-es/lists"}