{"id":15541911,"url":"https://github.com/markcellus/cookie-store","last_synced_at":"2025-04-07T13:06:06.542Z","repository":{"id":38427014,"uuid":"210151415","full_name":"markcellus/cookie-store","owner":"markcellus","description":"A polyfill for the Cookie Store API","archived":false,"fork":false,"pushed_at":"2023-07-18T21:34:35.000Z","size":693,"stargazers_count":97,"open_issues_count":8,"forks_count":14,"subscribers_count":1,"default_branch":"next","last_synced_at":"2024-04-14T07:43:20.982Z","etag":null,"topics":["cookie-polyfill","cookie-store","cookies","polyfill"],"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/markcellus.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-22T13:24:34.000Z","updated_at":"2024-06-18T18:31:39.738Z","dependencies_parsed_at":"2024-06-18T18:41:32.632Z","dependency_job_id":null,"html_url":"https://github.com/markcellus/cookie-store","commit_stats":{"total_commits":117,"total_committers":13,"mean_commits":9.0,"dds":0.6923076923076923,"last_synced_commit":"16f146bc223addc3edc9cfdcb99962b8b26917a5"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markcellus%2Fcookie-store","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markcellus%2Fcookie-store/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markcellus%2Fcookie-store/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markcellus%2Fcookie-store/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markcellus","download_url":"https://codeload.github.com/markcellus/cookie-store/tar.gz/refs/heads/next","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247657276,"owners_count":20974344,"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-polyfill","cookie-store","cookies","polyfill"],"created_at":"2024-10-02T12:20:01.103Z","updated_at":"2025-04-07T13:06:06.522Z","avatar_url":"https://github.com/markcellus.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `cookie-store`\n\n[![Build Status](https://travis-ci.org/markcellus/cookie-store.svg?branch=master)](https://travis-ci.org/markcellus/cookie-store)\n[![npm version](https://badge.fury.io/js/cookie-store.svg)](https://www.npmjs.com/package/cookie-store)\n\nA ponyfill to allow use of the [Cookie Store API](https://wicg.github.io/cookie-store/) in modern browsers that don't support it natively, including IE11. Also compatible with TypeScript.\n\n:warning: **EXPERIMENTAL:** _The Cookie Store API is not a W3C standard yet and the final implementation may differ from the current API of this project._\n\n## Installation\n\nTo ensure the most up-to-date compatibility with browsers, we recommend that you install version 4 of the package with the `next` flag:\n\n```sh\nnpm install cookie-store@next\n```\n\n## Basic Example\n\n```js\n// import polyfill and declare types\nimport { cookieStore } from 'cookie-store';\n\n// set a cookie\nawait cookieStore.set('forgive', 'me');\n// get a cookie\nconst foo = await cookieStore.get('forgive');\nconsole.log(foo); // { name: 'forgive', value: 'me' }\n\n// set another cookie\nawait cookieStore.set('forget', 'it');\n\n// get multiple cookies\nconst cookies = await cookieStore.getAll();\nconsole.log(cookies); // [{ name: 'forgive', value: 'me' }, { name: 'forget', value: 'it' }]\n\n// delete a cookie\nawait cookieStore.delete('forget');\n```\n\n## Development\n\n### Tests\n\nBefore running tests, you'll need to add the following entry to your `/etc/hosts` file on your machine:\n\n```\n127.0.0.1    foo.bar.localhost\n```\n\nThen run `npm test`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkcellus%2Fcookie-store","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkcellus%2Fcookie-store","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkcellus%2Fcookie-store/lists"}