{"id":24383319,"url":"https://github.com/firstandthird/cookie-monster","last_synced_at":"2025-04-11T01:12:19.620Z","repository":{"id":1747114,"uuid":"2573140","full_name":"firstandthird/cookie-monster","owner":"firstandthird","description":"Javascript Cookie Library","archived":false,"fork":false,"pushed_at":"2020-04-27T12:03:06.000Z","size":141,"stargazers_count":74,"open_issues_count":2,"forks_count":24,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-04-11T01:12:15.294Z","etag":null,"topics":["front-end"],"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/firstandthird.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}},"created_at":"2011-10-13T23:24:17.000Z","updated_at":"2023-05-16T02:21:17.000Z","dependencies_parsed_at":"2022-08-18T18:40:50.887Z","dependency_job_id":null,"html_url":"https://github.com/firstandthird/cookie-monster","commit_stats":null,"previous_names":["jgallen23/cookie-monster"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fcookie-monster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fcookie-monster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fcookie-monster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fcookie-monster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/firstandthird","download_url":"https://codeload.github.com/firstandthird/cookie-monster/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248322571,"owners_count":21084337,"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":["front-end"],"created_at":"2025-01-19T10:14:14.375Z","updated_at":"2025-04-11T01:12:19.603Z","avatar_url":"https://github.com/firstandthird.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cookie Monster\n\n[![Build Status](https://travis-ci.org/firstandthird/cookie-monster.svg?branch=master)](https://travis-ci.org/firstandthird/cookie-monster)\n![npm](https://img.shields.io/npm/v/@firstandthird/cookie-monster.svg)\n\nCookie manager\n\n## Installation\n\n```sh\nnpm install @firstandthird/cookie-monster\n```\n\n## Usage\n\n```js\nimport CookieMonster from '@firstandthird/cookie-monster';\n\nconst name = 'cookiename'; // required\nconst value = 'somevalue'; // required - may also be an object\nconst expires = 10; // optional - Days cookie is valid\nconst path = '/test'; // optional - defaults to /\nconst domain = 'blog.example.com'; // optional\nconst isSecure = false; // optional - sets secure flag\nconst sameSite = 'Strict'; // optional - defaults to 'Strict' - Valid values: 'None', 'Lax', 'Strict'\n\n// Set cookie\nCookieMonster.set(name, value, expires, path, domain, isSecure, sameSite);\n\n// Get cookie\nCookieMonster.get(name);\n\n// Remove cookie\n\nCookieMonster.remove(name);\n\n// Increment a counter cookie\nCookieMonster.increment(name, expires);\n\n// Decrement a counter cookie\n\nCookieMonster.decrement(name, expires);\n```\n\nMethods can also be imported as needed:\n\n```js\nimport { get, remove } from '@firstandthird/cookie-monster';\n\nget(name);\n\nremove(name);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirstandthird%2Fcookie-monster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffirstandthird%2Fcookie-monster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirstandthird%2Fcookie-monster/lists"}