{"id":16296248,"url":"https://github.com/jannchie/spider-cookies","last_synced_at":"2025-04-09T13:28:18.421Z","repository":{"id":57367424,"uuid":"349096000","full_name":"Jannchie/spider-cookies","owner":"Jannchie","description":"Parse and stringify cookies for web spider.","archived":false,"fork":false,"pushed_at":"2021-03-19T16:24:33.000Z","size":73,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-17T09:18:09.750Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Jannchie.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}},"created_at":"2021-03-18T14:03:53.000Z","updated_at":"2022-03-24T23:41:29.000Z","dependencies_parsed_at":"2022-08-23T19:30:28.450Z","dependency_job_id":null,"html_url":"https://github.com/Jannchie/spider-cookies","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jannchie%2Fspider-cookies","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jannchie%2Fspider-cookies/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jannchie%2Fspider-cookies/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jannchie%2Fspider-cookies/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jannchie","download_url":"https://codeload.github.com/Jannchie/spider-cookies/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248048361,"owners_count":21039027,"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":[],"created_at":"2024-10-10T20:21:50.737Z","updated_at":"2025-04-09T13:28:18.394Z","avatar_url":"https://github.com/Jannchie.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SPIDER-COOKIES\n\n[![Coverage Status](https://coveralls.io/repos/github/Jannchie/spider-cookies/badge.svg?branch=main)](https://coveralls.io/github/Jannchie/spider-cookies?branch=main) [![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/Jannchie/spider-cookies.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/Jannchie/spider-cookies/context:javascript)\n\n## Summary\n\nThe CookieJar is so complicated! I configured half a day Leng is not configured successfully! All I want is to update the original cookies based on the Set-Cookie field in the response header! I just want to write a crawler. I don't want to worry about domin, path, expiration time. So I wrote this library.\n\n## Setup\n\n``` bash\nnpm i spider-cookies\n```\n\n``` bash\nyarn add spider-cookies\n```\n\n## Usage\n\n``` ts\nimport { parseCookies, stringifyCookies } from \"spider-cookies\";\ncookies = \"test=value; name=spider-cookies\";\nlet cookiesMap = parseCookies(cookies);\ncookiesMap.set(\"test\", \"new_value\");\nconst cookiesString = stringifyCookies(cookiesMap);\n\n// jest\nexpect(cookiesString).toBe(\"test=new_value; name=spider-cookies\");\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjannchie%2Fspider-cookies","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjannchie%2Fspider-cookies","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjannchie%2Fspider-cookies/lists"}