{"id":20819979,"url":"https://github.com/elo7/cookie-amd","last_synced_at":"2025-05-07T15:41:12.016Z","repository":{"id":33979656,"uuid":"37726673","full_name":"elo7/cookie-amd","owner":"elo7","description":"Cookie.js is a library that manipulates browser cookie. This library uses amd structure.","archived":false,"fork":false,"pushed_at":"2024-08-14T16:57:19.000Z","size":114,"stargazers_count":2,"open_issues_count":12,"forks_count":0,"subscribers_count":99,"default_branch":"master","last_synced_at":"2025-04-18T14:17:11.684Z","etag":null,"topics":["amd","cookie","front-end","javascript","lib","martell","nymeros"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elo7.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":"2015-06-19T14:36:19.000Z","updated_at":"2020-07-10T16:30:59.000Z","dependencies_parsed_at":"2024-08-16T23:49:21.614Z","dependency_job_id":null,"html_url":"https://github.com/elo7/cookie-amd","commit_stats":{"total_commits":20,"total_committers":9,"mean_commits":"2.2222222222222223","dds":0.7,"last_synced_commit":"6109ce006d63e6e60c14f6b3005f0aebdf085f4d"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elo7%2Fcookie-amd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elo7%2Fcookie-amd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elo7%2Fcookie-amd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elo7%2Fcookie-amd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elo7","download_url":"https://codeload.github.com/elo7/cookie-amd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252907800,"owners_count":21823277,"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":["amd","cookie","front-end","javascript","lib","martell","nymeros"],"created_at":"2024-11-17T22:07:58.756Z","updated_at":"2025-05-07T15:41:11.973Z","avatar_url":"https://github.com/elo7.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cookie-amd\n\n_Cookie-amd browser cookie library_\n\nCookie.js is a library that manipulates browser cookie. This library uses [amd](http://en.wikipedia.org/wiki/Asynchronous_module_definition) structure.\n\n[![Build Status](https://travis-ci.org/elo7/cookie-amd.svg?branch=master)](https://travis-ci.org/elo7/cookie-amd)\n\n## Install\n\nInstall with [Npm](https://www.npmjs.com/): `npm install elo7-cookie-amd`\n\n## Dependency\n\nCookie-amd depends on an [amd](http://en.wikipedia.org/wiki/Asynchronous_module_definition) implementation. We suggest [define-async](https://www.npmjs.com/package/define-async) implementation for dependency lookup.\n\n## Methods\n\n#### get\n`.get(name)`\n\n###### Description:\nReturns a the cookie value.\n\n###### Sample:\n``` js\ndefine(['cookie'], function(cookie) {\n\tcookie.get('cookie-name');\n});\n```\n\n#### set\n`.set(name, value, days)`\n\n###### Description:\nCreates or rewrite a cookie value with a defined expiration time in days.\n\n###### Sample:\n``` js\ndefine(['cookie'], function(cookie) {\n\tcookie.set('cookie-name', 'value', 1);\n});\n```\n\n\n## License\n\nCookie-amd is released under the [BSD](https://github.com/elo7/cookie-amd/blob/master/LICENSE). Have at it.\n\n* * *\n\nCopyright :copyright: 2015 Elo7\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felo7%2Fcookie-amd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felo7%2Fcookie-amd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felo7%2Fcookie-amd/lists"}