{"id":22374853,"url":"https://github.com/qubitproducts/cookieman","last_synced_at":"2025-07-15T12:14:16.580Z","repository":{"id":634375,"uuid":"25879967","full_name":"QubitProducts/cookieman","owner":"QubitProducts","description":"simple cookie lib","archived":false,"fork":false,"pushed_at":"2023-04-15T23:33:07.000Z","size":2472,"stargazers_count":11,"open_issues_count":10,"forks_count":4,"subscribers_count":29,"default_branch":"master","last_synced_at":"2025-06-11T16:17:54.106Z","etag":null,"topics":["ceh","implement"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/QubitProducts.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,"governance":null}},"created_at":"2014-10-28T16:55:15.000Z","updated_at":"2023-06-02T12:06:28.000Z","dependencies_parsed_at":"2023-07-05T15:16:54.367Z","dependency_job_id":null,"html_url":"https://github.com/QubitProducts/cookieman","commit_stats":{"total_commits":85,"total_committers":12,"mean_commits":7.083333333333333,"dds":0.4117647058823529,"last_synced_commit":"f57d30e2f485d680e88a039de99f9877b04b89b6"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/QubitProducts/cookieman","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QubitProducts%2Fcookieman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QubitProducts%2Fcookieman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QubitProducts%2Fcookieman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QubitProducts%2Fcookieman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/QubitProducts","download_url":"https://codeload.github.com/QubitProducts/cookieman/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QubitProducts%2Fcookieman/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260688058,"owners_count":23046840,"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":["ceh","implement"],"created_at":"2024-12-04T21:18:44.903Z","updated_at":"2025-06-19T04:34:03.941Z","avatar_url":"https://github.com/QubitProducts.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ![Cookieman](https://cloud.githubusercontent.com/assets/640611/11089200/f075ee22-885f-11e5-8cda-d620b6b79c69.png)\n\nSimple commonjs cookie lib with path and domain awareness and ie7+ support\n\n## usage\n\n```javascript\nvar cm = require('cookieman')\n```\n\n### get\n\nGet an array containing all available cookies that match specified name\n\n```javascript\ncm.get('foo') // [{name: 'foo', value: 'bar'}]\n```\n\n### set\n\nSet a cookie, with optional options object to specify expiry, path and/or domain\n\n```javascript\ncm.set('name', 'value', {\n  expires: [date], // e.g. new Date(new Date().getTime() + 60000) or a timestamp\n  path: [path], // e.g. '/'\n  domain: [domain] // e.g. '.foo.com'\n})\n```\n\n### val\n\nReturn the first value of a cookie that has been set on the page, or null if the cookie is not present\n\n```javascript\ncm.val('name')\n```\n\n### cookies\n\nGet an array of all available cookies\n\n```javascript\ncm.cookies() // [{name: 'name', value: 'value'}]\n```\n\n### clear\n\nClear a cookie. This returns a boolean indicating whether the cookie was cleared or not.\nNote that to delete a cookie which lives on a specific path and/or domain, you must specify its path and/or domain.\n\n```javascript\ncm.clear('name', {\n  path: [path], // e.g. '/'\n  domain: [domain] // e.g. '.foo.com'\n}) // true\n```\n\n### clearAll\n\nBrute force clear all cookies with specified name on all super/subdomains and paths and return path and domain of cleared cookies\n\n```javascript\ncm.clearAll('name') // [{ path: '/', domain: '.foo'}]\n```\n\n## test\n\n```\nnpm test\n```\n\n## Want to work on this for your day job?\n\nThis project was created by the Engineering team at [Qubit](http://www.qubit.com). As we use open source libraries, we make our projects public where possible.\n\nWe’re currently looking to grow our team, so if you’re a JavaScript engineer and keen on ES2016 React+Redux applications and Node micro services, why not get in touch? Work with like minded engineers in an environment that has fantastic perks, including an annual ski trip, yoga, a competitive foosball league, and copious amounts of yogurt.\n\nFind more details on our [Engineering site](https://eng.qubit.com). Don’t have an up to date CV? Just link us your Github profile! Better yet, send us a pull request that improves this project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqubitproducts%2Fcookieman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqubitproducts%2Fcookieman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqubitproducts%2Fcookieman/lists"}