{"id":16013428,"url":"https://github.com/magicdawn/read-browser-cookies","last_synced_at":"2026-04-03T23:04:38.999Z","repository":{"id":64565259,"uuid":"576318241","full_name":"magicdawn/read-browser-cookies","owner":"magicdawn","description":"Node.js version  of `--cookies-from-browser` from yt-dlp","archived":false,"fork":false,"pushed_at":"2024-03-22T20:15:57.000Z","size":441,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-12T08:20:16.203Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/magicdawn.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2022-12-09T14:42:45.000Z","updated_at":"2023-08-04T11:48:39.000Z","dependencies_parsed_at":"2023-01-29T14:15:47.819Z","dependency_job_id":null,"html_url":"https://github.com/magicdawn/read-browser-cookies","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicdawn%2Fread-browser-cookies","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicdawn%2Fread-browser-cookies/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicdawn%2Fread-browser-cookies/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicdawn%2Fread-browser-cookies/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magicdawn","download_url":"https://codeload.github.com/magicdawn/read-browser-cookies/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237506568,"owners_count":19321205,"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":[],"created_at":"2024-10-08T14:41:15.115Z","updated_at":"2025-10-21T15:31:24.453Z","avatar_url":"https://github.com/magicdawn.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# read-browser-cookies\n\n\u003e Node.js version of `--cookies-from-browser` from yt-dlp\n\n[![Build Status](https://img.shields.io/github/actions/workflow/status/magicdawn/read-browser-cookies/ci.yml?branch=main\u0026style=flat-square)](https://github.com/magicdawn/read-browser-cookies/actions/workflows/ci.yml)\n[![Coverage Status](https://img.shields.io/codecov/c/github/magicdawn/read-browser-cookies.svg?style=flat-square)](https://codecov.io/gh/magicdawn/read-browser-cookies)\n[![npm version](https://img.shields.io/npm/v/read-browser-cookies.svg?style=flat-square)](https://www.npmjs.com/package/read-browser-cookies)\n[![npm downloads](https://img.shields.io/npm/dm/read-browser-cookies.svg?style=flat-square)](https://www.npmjs.com/package/read-browser-cookies)\n[![npm license](https://img.shields.io/npm/l/read-browser-cookies.svg?style=flat-square)](http://magicdawn.mit-license.org)\n\n## Install\n\n```sh\n$ pnpm add read-browser-cookies\n```\n\n## Alternative\n\nI'm surprised yt-dlp's usage, and create this pkg, then I found these existing alternative pkgs\n\n- https://github.com/bertrandom/chrome-cookies-secure\n- https://github.com/phoqe/havelock\n\n## Status\n\n- [x] macOS + Chromium Based browsers\n- [ ] macOS + safari\n- [ ] macOS + firefox\n- [ ] windows + Chromium Based browsers\n- [ ] windows + firefox\n- [ ] Linux + Chromium Based browsers\n- [ ] Linux + firefox\n\ncurrent only macOS + Chromium based browsers are supported.\n\n#### chromium based browser names\n\n- chrome\n- chromium\n- edge\n- brave\n- opera\n- vivaldi\n\n## API\n\n```js\nimport { readCookies, readCookiesStr } from 'read-browser-cookies'\n\n// read all cookies\nreadCookies('chrome').then((cookiesArray) =\u003e {\n  //\n})\n\n// read all cookies for specific site\nreadCookies('chrome', { site: 'youtube.com' }).then((cookiesArray) =\u003e {\n  //\n})\n\n// read all cookies for specific site, as string\nreadCookiesStr('chrome', { site: 'youtube.com' }).then((cookiesStr) =\u003e {\n  // request.get(url, { headers: { cookie: cookiesStr } })\n})\n```\n\n## Changelog\n\n[CHANGELOG.md](CHANGELOG.md)\n\n## License\n\nthe MIT License http://magicdawn.mit-license.org\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagicdawn%2Fread-browser-cookies","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagicdawn%2Fread-browser-cookies","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagicdawn%2Fread-browser-cookies/lists"}