{"library":"cookie-parser","type":"library","category":null,"description":"`cookie-parser` is an Express.js middleware designed to parse HTTP request cookies, making their values easily accessible through `req.cookies` and `req.signedCookies` properties. The current stable version is 1.4.7, indicating a mature and stable codebase with infrequent but consistent releases primarily focused on dependency updates to ensure compatibility and performance. A key differentiating feature is its robust support for both signed cookies, which helps mitigate tampering, and \"JSON cookies,\" which automatically deserialize JSON-prefixed cookie values. This package provides an essential and convenient layer for web applications built with Express that need to interact with client-side cookies, offering a structured approach to cookie management and enhanced security through optional signing capabilities. It does not handle setting cookies, which is typically done via `res.cookie()` in Express.","language":"javascript","status":"active","version":"1.4.7","tags":["javascript","cookie","middleware"],"last_verified":"Wed May 27","install":[{"cmd":"npm install cookie-parser","imports":["const cookieParser = require('cookie-parser')","const { signedCookie } = require('cookie-parser'); // or cookieParser.signedCookie","const { JSONCookie } = require('cookie-parser'); // or cookieParser.JSONCookie"]},{"cmd":"yarn add cookie-parser","imports":[]},{"cmd":"pnpm add cookie-parser","imports":[]}],"homepage":"https://expressjs.com/en/resources/middleware/cookie-parser.html","github":"https://github.com/expressjs/cookie-parser","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/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/cookie-parser/compatibility"}}