{"repo":"nfriedly/set-cookie-parser","free":true,"listed":false,"github":"https://github.com/nfriedly/set-cookie-parser","clone":"git clone https://github.com/nfriedly/set-cookie-parser.git","description":"Parse HTTP set-cookie headers in JavaScript","language":"JavaScript","stars":197,"topics":["javascript","cookie","cookies","nodejs","parser","header","headers","http","react-native"],"license":"MIT","category":"mobile-apps","readme_excerpt":"set-cookie-parser [![NPM version][npm-image]][npm-url] [ ][npm-url] --- Parses set-cookie headers into JavaScript objects Accepts a single set-cookie header value, an array of set-cookie header values, a Node.js response object, or a fetch() Response object that may have 0 or more set-cookie headers. Returns either an array of cookie objects or a map of name = cookie object with options set to {map: true} . Each cookie object will have name and value properties, and may have additional properties depending on the set-cookie header: name - cookie name (string) value - cookie value (string) path - URL path to limit the scope to (string or undefined) domain - domain to expand the scope to (string or undefined, may begin with \".\" to indicate the named domain or any subdomain of it) expires - absolute expiration date for the cookie (Date object or undefined) maxAge - relative expiration time of the cookie in seconds from when the client receives it (integer or undefined) Note: when using with express's res.cookie() method, multiply maxAge by 1000 to convert to milliseconds. secure - indicates cookie should only be sent over HTTPs (true or undefined) httpOnly - indicates cookie should not be accessible to client-side JavaScript (true or undefined) sameSite - indicates if cookie should be included in cross-site requests (more info) (string or undefined) Note: valid values are \"Strict\" , \"Lax\" , and \"None\" , but set-cookie-parser copies the value verbatim and does not perform any val","default_branch":null,"files":null,"tree":[],"storefront":"/r/nfriedly","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nfriedly/set-cookie-parser/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}