{"id":15862112,"url":"https://github.com/afeiship/next-node-cookie","last_synced_at":"2026-04-13T18:01:51.769Z","repository":{"id":57122800,"uuid":"171941663","full_name":"afeiship/next-node-cookie","owner":"afeiship","description":"Node cookie for next.","archived":false,"fork":false,"pushed_at":"2021-05-13T10:22:35.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-31T00:54:02.482Z","etag":null,"topics":["cookie","cookie-jar","next","node","set-cookie"],"latest_commit_sha":null,"homepage":null,"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/afeiship.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-21T20:38:37.000Z","updated_at":"2021-05-13T10:22:37.000Z","dependencies_parsed_at":"2022-08-24T14:59:32.273Z","dependency_job_id":null,"html_url":"https://github.com/afeiship/next-node-cookie","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/afeiship/next-node-cookie","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-node-cookie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-node-cookie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-node-cookie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-node-cookie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/next-node-cookie/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-node-cookie/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31764317,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","cookie-jar","next","node","set-cookie"],"created_at":"2024-10-05T22:25:07.990Z","updated_at":"2026-04-13T18:01:51.754Z","avatar_url":"https://github.com/afeiship.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# next-node-cookie\n\u003e Node cookie for next.\n\n[![version][version-image]][version-url]\n[![license][license-image]][license-url]\n[![size][size-image]][size-url]\n[![download][download-image]][download-url]\n\n## installation\n```bash\nnpm install -S @jswork/next-node-cookie\n```\n\n## apis\n| api       | params                | description                                      |\n| --------- | --------------------- | ------------------------------------------------ |\n| parse     | inSetCookies[]/String | parse response set-cookie headers to JSON        |\n| stringify | parseResults[]        | stringify JSON to Cookie string for next request |\n\n## usage\n```js\nimport NxNodeCookie from '@jswork/next-node-cookie';\n\nNxNodeCookie.parse(`_ga=GA1.2.729997516.1607231707; __yadk_uid=mzVWjNrFUF2DhH0hOsBozQQ6Do3Buatn; UM_distinctid=17891f84c8822a-0d20b047766908-1632685d-232800-17891f84c8961d; read_mode=day; default_font=font2; locale=zh-CN; Hm_lvt_0c0e9d9b1e7d617b3e6842e85b9fb068=1620700070,1620700663,1620702484,1620807738; CNZZDATA1279807957=1905319660-1617352675-https%253A%252F%252Fwww.baidu.com%252F%7C1620894092; sensorsdata2015jssdkcross=%7B%22distinct_id%22%3A%2217636799764109-0f8eb33d45637b-18356153-2304000-17636799765a14%22%2C%22first_id%22%3A%22%22%2C%22props%22%3A%7B%22%24latest_traffic_source_type%22%3A%22%E7%9B%B4%E6%8E%A5%E6%B5%81%E9%87%8F%22%2C%22%24latest_search_keyword%22%3A%22%E6%9C%AA%E5%8F%96%E5%88%B0%E5%80%BC_%E7%9B%B4%E6%8E%A5%E6%89%93%E5%BC%80%22%2C%22%24latest_referrer%22%3A%22%22%7D%2C%22%24device_id%22%3A%2217636799764109-0f8eb33d45637b-18356153-2304000-17636799765a14%22%7D; _gid=GA1.2.455120968.1620898684; Hm_lpvt_0c0e9d9b1e7d617b3e6842e85b9fb068=1620898744`);\n\n\n// result\n/*\n[\n  { name: '_ga', value: 'GA1.2.729997516.1607231707' },\n  { name: '__yadk_uid', value: 'mzVWjNrFUF2DhH0hOsBozQQ6Do3Buatn' },\n  {\n    name: 'UM_distinctid',\n    value: '17891f84c8822a-0d20b047766908-1632685d-232800-17891f84c8961d'\n  },\n  { name: 'read_mode', value: 'day' },\n  { name: 'default_font', value: 'font2' },\n  { name: 'locale', value: 'zh-CN' },\n  {\n    name: 'Hm_lvt_0c0e9d9b1e7d617b3e6842e85b9fb068',\n    value: '1620700070,1620700663,1620702484,1620807738'\n  },\n  {\n    name: 'CNZZDATA1279807957',\n    value: '1905319660-1617352675-https%3A%2F%2Fwww.baidu.com%2F|1620894092'\n  },\n  {\n    name: 'sensorsdata2015jssdkcross',\n    value:\n      '{\"distinct_id\":\"17636799764109-0f8eb33d45637b-18356153-2304000-17636799765a14\",\"first_id\":\"\",\"props\":{\"$latest_traffic_source_type\":\"直接流量\",\"$latest_search_keyword\":\"未取到值_直接打开\",\"$latest_referrer\":\"\"},\"$device_id\":\"17636799764109-0f8eb33d45637b-18356153-2304000-17636799765a14\"}'\n  },\n  { name: '_gid', value: 'GA1.2.455120968.1620898684' },\n  {\n    name: 'Hm_lpvt_0c0e9d9b1e7d617b3e6842e85b9fb068',\n    value: '1620898744'\n  }\n]\n*/\n```\n\n## license\nCode released under [the MIT license](https://github.com/afeiship/next-node-cookie/blob/master/LICENSE.txt).\n\n[version-image]: https://img.shields.io/npm/v/@jswork/next-node-cookie\n[version-url]: https://npmjs.org/package/@jswork/next-node-cookie\n\n[license-image]: https://img.shields.io/npm/l/@jswork/next-node-cookie\n[license-url]: https://github.com/afeiship/next-node-cookie/blob/master/LICENSE.txt\n\n[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-node-cookie\n[size-url]: https://github.com/afeiship/next-node-cookie/blob/master/dist/next-node-cookie.min.js\n\n[download-image]: https://img.shields.io/npm/dm/@jswork/next-node-cookie\n[download-url]: https://www.npmjs.com/package/@jswork/next-node-cookie\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-node-cookie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Fnext-node-cookie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-node-cookie/lists"}