{"id":21073869,"url":"https://github.com/whosydd/cookie-format","last_synced_at":"2026-04-20T05:02:01.356Z","repository":{"id":57206997,"uuid":"416459336","full_name":"whosydd/cookie-format","owner":"whosydd","description":"format cookie for lib","archived":false,"fork":false,"pushed_at":"2021-11-05T17:41:52.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-30T07:37:52.279Z","etag":null,"topics":["cookie","format","puppeteer"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/whosydd.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":"2021-10-12T18:49:36.000Z","updated_at":"2021-11-05T17:41:54.000Z","dependencies_parsed_at":"2022-09-08T14:22:26.701Z","dependency_job_id":null,"html_url":"https://github.com/whosydd/cookie-format","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/whosydd/cookie-format","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whosydd%2Fcookie-format","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whosydd%2Fcookie-format/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whosydd%2Fcookie-format/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whosydd%2Fcookie-format/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/whosydd","download_url":"https://codeload.github.com/whosydd/cookie-format/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whosydd%2Fcookie-format/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32033717,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","format","puppeteer"],"created_at":"2024-11-19T19:13:29.071Z","updated_at":"2026-04-20T05:02:01.341Z","avatar_url":"https://github.com/whosydd.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cookie-format\n\n一个简单的工具库，用于处理各种 cookie 格式化，目前仅添加了处理`puppeteer`的 cookie 格式，后续用到时会继续添加对其他库的支持\n\n## Usage\n\n```js\nconst { puppeteerCookie } = require('cookie-format')\n\n// puppeteerCookie接收的第一个参数为cookie字符串，第二个参数为其他参数的对象，例如：domain、url等\nconst res = puppeteerCookie('a=1; b=2', { domain: 'example.com' })\n\n//puppeteer中设置cookie\nawait page.setCookie(...res)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhosydd%2Fcookie-format","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhosydd%2Fcookie-format","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhosydd%2Fcookie-format/lists"}