{"id":16756787,"url":"https://github.com/charmander/strict-cookie-parser","last_synced_at":"2025-04-10T16:52:29.827Z","repository":{"id":29430826,"uuid":"32966727","full_name":"charmander/strict-cookie-parser","owner":"charmander","description":"A JavaScript cookie parsing module.","archived":false,"fork":false,"pushed_at":"2021-05-27T00:34:23.000Z","size":71,"stargazers_count":3,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T14:44:37.498Z","etag":null,"topics":["cookie","nodejs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/strict-cookie-parser","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/charmander.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2015-03-27T03:57:31.000Z","updated_at":"2021-05-27T00:34:25.000Z","dependencies_parsed_at":"2022-07-13T21:34:30.437Z","dependency_job_id":null,"html_url":"https://github.com/charmander/strict-cookie-parser","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charmander%2Fstrict-cookie-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charmander%2Fstrict-cookie-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charmander%2Fstrict-cookie-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charmander%2Fstrict-cookie-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/charmander","download_url":"https://codeload.github.com/charmander/strict-cookie-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248256302,"owners_count":21073501,"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":["cookie","nodejs"],"created_at":"2024-10-13T03:42:05.235Z","updated_at":"2025-04-10T16:52:29.791Z","avatar_url":"https://github.com/charmander.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build status][ci-image]][ci]\n\nParses cookie headers according to [RFC 6265][], producing a [Map][].\n\nFor Connect (Express) middleware, see [strict-cookie-middleware][].\n\n```javascript\nimport { parseCookieHeader } from 'strict-cookie-parser';\n\nparseCookieHeader('hello=world; foo=bar')\n// Map { 'hello' =\u003e 'world', 'foo' =\u003e 'bar' }\n\nparseCookieHeader('not a cookie')\n// null\n```\n\n```javascript\nimport {\n    parseCookiePair,\n    isCookieName,\n    parseCookieValue,\n} from 'strict-cookie-parser';\n\nparseCookiePair('single=pair')\n// { name: 'single', value: 'pair' }\n\nisCookieName('foo')\n// true\n\nisCookieName('m=m')\n// invalid - cookie names cannot contain =\n// false\n\nparseCookieValue('\"foo\"')\n// 'foo'\n\nparseCookieValue(' foo')\n// invalid - unquoted cookie values cannot begin with a space\n// null\n```\n\n\n  [RFC 6265]: https://tools.ietf.org/html/rfc6265\n  [Map]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map\n  [strict-cookie-middleware]: https://github.com/charmander/strict-cookie-middleware\n\n  [ci]: https://github.com/charmander/strict-cookie-parser/actions\n  [ci-image]: https://github.com/charmander/strict-cookie-parser/workflows/Node%20CI/badge.svg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharmander%2Fstrict-cookie-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcharmander%2Fstrict-cookie-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharmander%2Fstrict-cookie-parser/lists"}