{"id":15889038,"url":"https://github.com/arshadkazmi42/chrome-cookie","last_synced_at":"2025-03-20T10:31:09.983Z","repository":{"id":44840019,"uuid":"200471348","full_name":"arshadkazmi42/chrome-cookie","owner":"arshadkazmi42","description":"Chrome cookie manager for node. To set and get cookie from chrome","archived":false,"fork":false,"pushed_at":"2022-10-03T18:14:01.000Z","size":151,"stargazers_count":4,"open_issues_count":3,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-01T14:35:49.730Z","etag":null,"topics":["chrome","chrome-cookie","cookie","cookie-crud","crud","db","hacktoberfest","sql","sqlite"],"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/arshadkazmi42.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"arshadkazmi42"}},"created_at":"2019-08-04T09:01:45.000Z","updated_at":"2024-05-01T14:35:49.730Z","dependencies_parsed_at":"2022-09-16T14:10:48.384Z","dependency_job_id":null,"html_url":"https://github.com/arshadkazmi42/chrome-cookie","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arshadkazmi42%2Fchrome-cookie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arshadkazmi42%2Fchrome-cookie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arshadkazmi42%2Fchrome-cookie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arshadkazmi42%2Fchrome-cookie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arshadkazmi42","download_url":"https://codeload.github.com/arshadkazmi42/chrome-cookie/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219869719,"owners_count":16555476,"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":["chrome","chrome-cookie","cookie","cookie-crud","crud","db","hacktoberfest","sql","sqlite"],"created_at":"2024-10-06T06:40:57.891Z","updated_at":"2024-10-06T06:41:02.270Z","avatar_url":"https://github.com/arshadkazmi42.png","language":"JavaScript","readme":"# chrome-cookie\n\n[![Build](https://github.com/arshadkazmi42/chrome-cookie/actions/workflows/nodejs.yml/badge.svg)](https://github.com/arshadkazmi42/chrome-cookie/actions/workflows/nodejs.yml)\n[![NPM Version](https://img.shields.io/npm/v/chrome-cookie.svg)](https://www.npmjs.com/package/chrome-cookie)\n[![NPM Downloads](https://img.shields.io/npm/dt/chrome-cookie.svg)](https://www.npmjs.com/package/chrome-cookie)\n[![Github Repo Size](https://img.shields.io/github/repo-size/arshadkazmi42/chrome-cookie.svg)](https://github.com/arshadkazmi42/chrome-cookie)\n[![LICENSE](https://img.shields.io/npm/l/chrome-cookie.svg)](https://github.com/arshadkazmi42/chrome-cookie/blob/master/LICENSE)\n[![Contributors](https://img.shields.io/github/contributors/arshadkazmi42/chrome-cookie.svg)](https://github.com/arshadkazmi42/chrome-cookie/graphs/contributors)\n[![Commit](https://img.shields.io/github/last-commit/arshadkazmi42/chrome-cookie.svg)](https://github.com/arshadkazmi42/chrome-cookie/commits/master)\n\nNode Cookie Manager for Chrome, read / write cookie from sqlite db\n\n## Install\n\n```\nnpm i chrome-cookie\n```\n\n## Usage\n\n```javascript\n\nconst ChromeCookie = require('chrome-cookie');\nconst CCookie = new ChromeCookie();\n\n// Reading cookie\nconst cookie = await CCookie.getCookie('arshad.com');\n\n// Inserting cookie\nconst DATA = [\n  {\n    'creation_utc': 'now',\n    'encrypted_value': 'enc2',\n    'expires_utc': 'never',\n    'has_expires': 'yes',\n    'host_key': 'arshad.com',\n    'is_httponly': 'yes',\n    'is_persistent': 'no',\n    'is_secure': 'yes',\n    'last_access_utc': 'now',\n    'name': 'arshad',\n    'path': '/root',\n    'priority': 'no',\n    'value': 'kazmi',\n    'samesite': -1\n  }\n];\n\nawait CCookie.setCookie(DATA);\n```\n\n## API\n\n- **`getCookie(path)`**\n  - Returns cookie json from database for the input path\n    - **Params**\n      - path (String)\n\n- **`setCookie(cookies)`**\n  - Adds all the input cookies into the sqlite database\n    - **Params**\n      - cookies (Array of cookies object)\n\n- **`removeCookie(domain)`**\n  - Removes all records matching the domain.\n  - \u003e It uses `like` condition (`%domain%`) so anything matching the pattern will be removed\n    - **Params**\n      - path (String)\n\n## Contributing\n\nInterested in contributing to this project?\nYou can log any issues or suggestion related to this library [here](https://github.com/arshadkazmi42/chrome-cookie/issues/new)\n\nRead our contributing [guide](CONTRIBUTING.md) on getting started with contributing to the codebase\n","funding_links":["https://github.com/sponsors/arshadkazmi42"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farshadkazmi42%2Fchrome-cookie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farshadkazmi42%2Fchrome-cookie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farshadkazmi42%2Fchrome-cookie/lists"}