{"id":17888653,"url":"https://github.com/trs/nestjs-cookie","last_synced_at":"2025-04-03T03:16:08.435Z","repository":{"id":65163726,"uuid":"584533844","full_name":"trs/nestjs-cookie","owner":"trs","description":"Read cookies using decorators in NestJS","archived":false,"fork":false,"pushed_at":"2023-10-28T21:36:41.000Z","size":83,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-26T11:12:02.479Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-01-02T20:59:28.000Z","updated_at":"2023-10-06T16:17:25.000Z","dependencies_parsed_at":"2024-10-28T14:27:51.880Z","dependency_job_id":"b0ccd7a6-bd0c-478b-b2b9-cfb031bdde0f","html_url":"https://github.com/trs/nestjs-cookie","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trs%2Fnestjs-cookie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trs%2Fnestjs-cookie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trs%2Fnestjs-cookie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trs%2Fnestjs-cookie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trs","download_url":"https://codeload.github.com/trs/nestjs-cookie/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246927843,"owners_count":20856198,"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":["hacktoberfest"],"created_at":"2024-10-28T13:42:04.282Z","updated_at":"2025-04-03T03:16:08.409Z","avatar_url":"https://github.com/trs.png","language":"TypeScript","readme":"# NestJS Cookie\n\n\u003e Read cookies using decorators in NestJS\n\n## Install\n\n```sh\nnpm install nestjs-cookie\n# or\nyarn add nestjs-cookie\n```\n\n## Usage\n\nUse the `@Cookie` decorator to grab a cookie from the `cookie` header.\n\n```ts\nimport { Controller } from '@nestjs/common';\nimport { Cookie } from 'nestjs-cookie';\n\n@Controller()\nexport class MyController {\n  @Get()\n  async myMethod(@Cookie('some_token') token: string) {\n    console.log(token);\n  }\n}\n```\n\nYou can also grab a `Map` of all cookies using the `@Cookies` decorator\n\n```ts\nimport { Controller } from '@nestjs/common';\nimport { Cookies } from 'nestjs-cookie';\n\n@Controller()\nexport class MyController {\n  @Get()\n  async myMethod(@Cookies() cookies: Map\u003cstring, string\u003e) {\n    console.log(cookies);\n  }\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrs%2Fnestjs-cookie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrs%2Fnestjs-cookie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrs%2Fnestjs-cookie/lists"}