{"id":15712043,"url":"https://github.com/xvezda/cookie-observer","last_synced_at":"2025-03-30T18:12:00.172Z","repository":{"id":208419103,"uuid":"646941207","full_name":"Xvezda/cookie-observer","owner":"Xvezda","description":":cookie: Observer for cookie","archived":false,"fork":false,"pushed_at":"2023-11-21T10:12:30.000Z","size":172,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-05T20:06:52.303Z","etag":null,"topics":["cookie","observer","typescript"],"latest_commit_sha":null,"homepage":"https://npm.im/cookie-observer","language":"TypeScript","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/Xvezda.png","metadata":{"files":{"readme":"README.ko.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,"governance":null}},"created_at":"2023-05-29T17:38:47.000Z","updated_at":"2023-11-21T10:24:50.000Z","dependencies_parsed_at":"2023-11-21T12:31:17.347Z","dependency_job_id":"d993ecaa-cdba-45c3-9e55-c7b899d2a326","html_url":"https://github.com/Xvezda/cookie-observer","commit_stats":null,"previous_names":["xvezda/cookie-observer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xvezda%2Fcookie-observer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xvezda%2Fcookie-observer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xvezda%2Fcookie-observer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xvezda%2Fcookie-observer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Xvezda","download_url":"https://codeload.github.com/Xvezda/cookie-observer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246358338,"owners_count":20764366,"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","observer","typescript"],"created_at":"2024-10-03T21:14:37.926Z","updated_at":"2025-03-30T18:12:00.154Z","avatar_url":"https://github.com/Xvezda.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CookieObserver\n\n| [English](README.md) |\n| -------------------- |\n\n`document.cookie`와 `cookieStore`를 위한 옵저버 형태 구현체와 미지원 브라우저를 위한 `cookieStore`의 유사 폴리필 클래스를 제공합니다.\n\n## 설치\n\n```sh\n# npm\nnpm install cookie-observer\n# yarn\nyarn add cookie-observer\n# pnpm\npnpm add cookie-observer\n```\n\n## 사용법\n\n```ts\nimport { CookieStore, CookieObserver } from 'cookie-observer';\n\nconst store =\n  typeof cookieStore !== 'undefined' ? cookieStore : new CookieStore(document);\n\nconst observer = new CookieObserver((entries) =\u003e {\n  console.debug(entries);\n});\nobserver.observe(store);\n```\n\n## 한계\n\n자바스크립트 수준에서의 쿠키 접근은 쿠키 이름과 값에 한정되어 있기 때문에 호환성과 일관성 유지를 위하여 `name`과 `value` 필드를 제외한 나머지 필드는 의도적으로 생략하였습니다.\n\n## TODO\n\n- [x] `cookieStore` 인터페이스 구현\n- [ ] `observe` 옵션 추가 (interval 조정, extra field 유지 등)\n- [ ] 폴리필 형태의 설치 스크립트 추가\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxvezda%2Fcookie-observer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxvezda%2Fcookie-observer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxvezda%2Fcookie-observer/lists"}