{"library":"set-cookie-parser","type":"library","category":null,"description":"set-cookie-parser is a JavaScript/TypeScript library designed to parse `Set-Cookie` HTTP response headers into structured JavaScript objects. It currently stands at stable version 3.1.0 and is actively maintained, with a healthy release cadence and recent updates. The library is highly versatile, accepting various inputs including single header strings, arrays of header strings, Node.js `http.ServerResponse` objects, and `fetch()` `Response` objects. A key differentiator is its ability to return either an array of cookie objects or a map where cookie names are keys, depending on configuration. Each parsed cookie object provides a comprehensive set of attributes, including `name`, `value`, `path`, `domain`, `expires` (as `Date` objects), `maxAge`, `secure`, `httpOnly`, `sameSite`, and `partitioned`. It ships with built-in TypeScript types, ensuring robust type checking and improved developer experience in modern TypeScript projects.","language":"javascript","status":"active","version":"3.1.0","tags":["javascript","set-cookie","set","cookie","cookies","header","parse","parser","typescript"],"install":[{"cmd":"npm install set-cookie-parser","imports":["import { parseSetCookie } from 'set-cookie-parser';","const { parseSetCookie } = require('set-cookie-parser');","import type { Cookie } from 'set-cookie-parser';"]},{"cmd":"yarn add set-cookie-parser","imports":[]},{"cmd":"pnpm add set-cookie-parser","imports":[]}],"homepage":null,"github":"https://github.com/nfriedly/set-cookie-parser","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/set-cookie-parser","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/set-cookie-parser/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Mon Jul 20","install_tag":null}}