{"id":16153390,"url":"https://github.com/gigabyte5671/cookiemanager","last_synced_at":"2025-06-12T06:32:47.523Z","repository":{"id":129314775,"uuid":"360171439","full_name":"Gigabyte5671/CookieManager","owner":"Gigabyte5671","description":"An incredibly simple and lightweight library for adding, fetching, modifying, and removing browser cookies.","archived":false,"fork":false,"pushed_at":"2023-10-24T21:38:18.000Z","size":28,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T11:16:38.902Z","etag":null,"topics":["cookie","cookies","javascript","javascript-library","web"],"latest_commit_sha":null,"homepage":"http://cookie-manager.zakweb.dev/","language":"HTML","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/Gigabyte5671.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":"2021-04-21T12:59:10.000Z","updated_at":"2025-01-18T09:52:07.000Z","dependencies_parsed_at":"2023-07-28T08:30:33.302Z","dependency_job_id":null,"html_url":"https://github.com/Gigabyte5671/CookieManager","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gigabyte5671%2FCookieManager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gigabyte5671%2FCookieManager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gigabyte5671%2FCookieManager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gigabyte5671%2FCookieManager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gigabyte5671","download_url":"https://codeload.github.com/Gigabyte5671/CookieManager/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247569138,"owners_count":20959758,"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","cookies","javascript","javascript-library","web"],"created_at":"2024-10-10T01:11:47.684Z","updated_at":"2025-04-06T23:38:37.964Z","avatar_url":"https://github.com/Gigabyte5671.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003cimg width=\"96\" src=\"https://img.icons8.com/color/96/000000/cookies.png\" draggable=\"false\"\u003e\u003c/p\u003e\n\nCookieManager.js\n========\n\n#### JavaScript Cookie Manager ####\n[Demo](https://cookie-manager.zakweb.dev/)\n\nAn incredibly simple and lightweight library for creating, reading, updating, and deleting browser cookies.\n  \n\n### Usage ###\n\nInclude:\n\n```html\n\u003cscript src=\"https://gigabyte5671.github.io/CookieManager/cookieManager.min.js\" type=\"text/javascript\"\u003e\u003c/script\u003e\n```\nOr download the zip from the releases page.  \n  \nTo create a cookie, call the setCookie() function with arguments for the cookie name, the value, and the lifespan (in days).  \n(To update a cookie, just call setCookie() again with the same name and the new value)\n\n```javascript\nsetCookie(cookieName, cookieValue, cookieLifespan);\n```\n\nTo retrieve the value of a cookie, call the getCookie() function with an argument for the cookie name. This will return the value of the cookie as a string.\n\n```javascript\nvar cookieValue = getCookie(cookieName);\n```\n\nTo check if a cookie exists, call the checkCookie() function with an argument for the cookie name. This will return boolean true if the cookie exists, and boolean false if it doesn't.  \n(This function is faster than getCookie if you don't need to know the cookie's value)\n\n```javascript\nvar cookieExists = checkCookie(cookieName);\n```\n\nFinally, to remove a cookie, call the clearCookie() function with an argument for the cookie name.\n\n```javascript\nclearCookie(cookieName);\n```\n  \n*Note: Most browsers enforce a maximum size of 4096 bytes per cookie. Attempting to set or update a cookie with a value larger than that will fail without returning an error.*\n  \n### Other ###\n\n[Cookies icon by Icons8](https://icons8.com/icon/12878/cookies)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgigabyte5671%2Fcookiemanager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgigabyte5671%2Fcookiemanager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgigabyte5671%2Fcookiemanager/lists"}