{"id":18600906,"url":"https://github.com/wingleung/middy-aws-cookie-parser","last_synced_at":"2025-04-10T19:30:25.331Z","repository":{"id":42183768,"uuid":"510452735","full_name":"wingleung/middy-aws-cookie-parser","owner":"wingleung","description":"A middy middleware to parse cookies on AWS","archived":false,"fork":false,"pushed_at":"2022-08-03T19:21:38.000Z","size":152,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T03:01:35.443Z","etag":null,"topics":["aws","aws-lambda","cookie","lambda","middleware","middy"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wingleung.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-04T17:45:30.000Z","updated_at":"2024-10-18T01:23:38.000Z","dependencies_parsed_at":"2022-08-24T14:34:21.794Z","dependency_job_id":null,"html_url":"https://github.com/wingleung/middy-aws-cookie-parser","commit_stats":null,"previous_names":["wingleung/middy-cookie-parser"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wingleung%2Fmiddy-aws-cookie-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wingleung%2Fmiddy-aws-cookie-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wingleung%2Fmiddy-aws-cookie-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wingleung%2Fmiddy-aws-cookie-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wingleung","download_url":"https://codeload.github.com/wingleung/middy-aws-cookie-parser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248269768,"owners_count":21075788,"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":["aws","aws-lambda","cookie","lambda","middleware","middy"],"created_at":"2024-11-07T02:06:19.887Z","updated_at":"2025-04-10T19:30:24.794Z","avatar_url":"https://github.com/wingleung.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003eMiddy AWS cookie parsing middleware\u003c/h1\u003e\n  \u003cimg alt=\"Middy logo\" src=\"https://raw.githubusercontent.com/wingleung/middy-cookie-parser/main/docs/img/middy-logo.svg\"/\u003e\n  \u003cp\u003e\u003cstrong\u003eAWS cookie parsing middleware for the middy framework\u003c/strong\u003e\u003c/p\u003e\n\u003c/div\u003e\n\u003cp\u003e\n  \u003ca href=\"https://github.com/wingleung/middy-cookie-parser/actions/workflows/test.yml\"\u003e\n    \u003cimg src=\"https://github.com/wingleung/middy-cookie-parser/actions/workflows/test.yml/badge.svg\" alt=\"Known Vulnerabilities\" data-canonical-src=\"https://snyk.io/test/github/wingleung/middy-cookie-parser\" style=\"max-width:100%;\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/middy-cookie-parser?activeTab=versions\"\u003e\n    \u003cimg src=\"https://badge.fury.io/js/middy-cookie-parser.svg\" alt=\"npm version\" style=\"max-width:100%;\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://packagephobia.com/result?p=middy-cookie-parser\"\u003e\n    \u003cimg src=\"https://packagephobia.com/badge?p=middy-cookie-parser\" alt=\"npm install size\" style=\"max-width:100%;\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://snyk.io/test/github/wingleung/middy-cookie-parser\"\u003e\n    \u003cimg src=\"https://snyk.io/test/github/wingleung/middy-cookie-parser/badge.svg\" alt=\"Known Vulnerabilities\" data-canonical-src=\"https://snyk.io/test/github/wingleung/middy-cookie-parser\" style=\"max-width:100%;\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\nInstall\n\n```shell\nnpm install middy-aws-cookie-parser --save\n```\n\nUsage\n\n```typescript\nimport type { APIGatewayEventWithCookie } from 'middy-cookie-parser'\n\nimport middy from '@middy/core'\nimport CookieParser from 'middy-aws-cookie-parser'\n\nasync function baseHandler(event: Partial\u003cAPIGatewayEventWithCookie\u003e) {\n  \n  // event.cookies is available as a parsed cookie jar\n  \n  return {\n    statusCode: 200,\n    body: JSON.stringify(\n      event.cookies\n    )\n  }\n}\n\nconst handler = middy(baseHandler)\n  .use(CookieParser())\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwingleung%2Fmiddy-aws-cookie-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwingleung%2Fmiddy-aws-cookie-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwingleung%2Fmiddy-aws-cookie-parser/lists"}