{"versions":{"0.1.0":{"name":"@steipete/sweet-cookie","version":"0.1.0","description":"Inline-first browser cookie extraction for local tooling (no native addons).","license":"MIT","author":{"name":"Peter Steinberger"},"type":"module","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/steipete/sweet-cookie.git","directory":"packages/core"},"bugs":{"url":"https://github.com/steipete/sweet-cookie/issues"},"homepage":"https://github.com/steipete/sweet-cookie#readme","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"publishConfig":{"access":"public"},"scripts":{"build":"node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.json","typecheck":"tsc -p tsconfig.json --noEmit"},"engines":{"node":">=22"},"gitHead":"41d609fe862e1a5bce35d403e68ec56248c84693","_id":"@steipete/sweet-cookie@0.1.0","_nodeVersion":"25.2.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-cF8hS6rTohAFI1NAm2/HM9omBlw6V1DpwF6q5e9FB+l274HjtyirCgCc6QK2Rtuh7uDoqWHshFQZPsceyJuVgw==","shasum":"68e5e4a383cf4600da37577f291a806ed129c049","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@steipete/sweet-cookie/-/sweet-cookie-0.1.0.tgz","fileCount":127,"unpackedSize":193400,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDEBDNCxSP0XADvjWc8zvPfEbHAUCnkv/skkFgJP/5JPwIgO58tUpOQApTTEQm4iLXJHISAlHD81tLsUR4whZCZ8VI="}],"size":40852},"_npmUser":{"name":"anonymous","email":"steipete@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"steipete@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sweet-cookie_0.1.0_1766885621311_0.9620029747415095"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-12-28T01:33:41.463Z","publish_time":1766885621463,"_source_registry_name":"default","contributors":[]},"0.2.0":{"name":"@steipete/sweet-cookie","version":"0.2.0","description":"Inline-first browser cookie extraction for local tooling (no native addons).","homepage":"https://github.com/steipete/sweet-cookie#readme","bugs":{"url":"https://github.com/steipete/sweet-cookie/issues"},"license":"MIT","author":{"name":"Peter Steinberger"},"repository":{"type":"git","url":"git+https://github.com/steipete/sweet-cookie.git","directory":"packages/core"},"type":"module","main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"publishConfig":{"access":"public"},"scripts":{"build":"node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.json","typecheck":"tsc -p tsconfig.json --noEmit"},"engines":{"node":">=22"},"gitHead":"7aeba401fc76505a1a6844dcf231bb74ebd24ea4","_id":"@steipete/sweet-cookie@0.2.0","_nodeVersion":"25.3.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-R6kkmWZe36gysj0oET8v7ZQ3aZ6GxLU+ssD1BMomy53Au1Ax9LZ4g1pWE5FLgAD9nX6Y5VYjbn9kc5UZpG776Q==","shasum":"303899b7856a5074cc2acde63d42070a402cdd7e","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@steipete/sweet-cookie/-/sweet-cookie-0.2.0.tgz","fileCount":127,"unpackedSize":207439,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHxNh2UuoSVpBkjdi+VhEmTHxWc3v6QXJAmUNpvFJg79AiEAzPFttV3y1plmCVyEg+2C6CSFn62sSgM7DJzTVdLHsLE="}],"size":43361},"_npmUser":{"name":"anonymous","email":"steipete@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"steipete@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sweet-cookie_0.2.0_1772933885295_0.554624655118636"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-03-08T01:38:05.466Z","publish_time":1772933885466,"_source_registry_name":"default","contributors":[]},"0.3.0":{"name":"@steipete/sweet-cookie","version":"0.3.0","description":"Inline-first browser cookie extraction for local tooling (no native addons).","homepage":"https://github.com/steipete/sweet-cookie#readme","bugs":{"url":"https://github.com/steipete/sweet-cookie/issues"},"license":"MIT","author":{"name":"Peter Steinberger"},"repository":{"type":"git","url":"git+https://github.com/steipete/sweet-cookie.git","directory":"packages/core"},"type":"module","main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"publishConfig":{"access":"public"},"scripts":{"build":"node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsgo -p tsconfig.json","typecheck":"tsgo -p tsconfig.json --noEmit"},"engines":{"node":">=22"},"gitHead":"f7f8d6680ebc0e8a2665c2440c7c682f723802f8","_id":"@steipete/sweet-cookie@0.3.0","_nodeVersion":"25.8.1","_npmVersion":"11.11.0","dist":{"integrity":"sha512-eGjIEtWe6PPO1kOGGcxloiI8CXuIRdUzDbNBjhoZyvS9FiL0U3vVussNDV0EBuu3OILGrCKizpkxmpJ9G3BcHg==","shasum":"f76e257d89961e55c806c545c8ecf92e5f40c88f","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@steipete/sweet-cookie/-/sweet-cookie-0.3.0.tgz","fileCount":127,"unpackedSize":210778,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFAcZgXiLp+zAsbllwCBeffozqyIygwNoEOApB/7adMTAiEA46Nh07WdHFKmesOtGlkR+vlUZcVwCWNGx//jgNXROkE="}],"size":44245},"_npmUser":{"name":"anonymous","email":"steipete@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"steipete@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sweet-cookie_0.3.0_1778794076504_0.7197320909738847"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-05-14T21:27:56.721Z","publish_time":1778794076721,"_source_registry_name":"default","contributors":[]},"0.4.0":{"name":"@steipete/sweet-cookie","version":"0.4.0","description":"Inline-first browser cookie extraction for local tooling (no native addons).","homepage":"https://github.com/steipete/sweet-cookie#readme","bugs":{"url":"https://github.com/steipete/sweet-cookie/issues"},"license":"MIT","author":{"name":"Peter Steinberger"},"repository":{"type":"git","url":"git+https://github.com/steipete/sweet-cookie.git","directory":"packages/core"},"bin":{"sweet-cookie":"dist/cli.js"},"type":"module","main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./cli":{"types":"./dist/cli.d.ts","import":"./dist/cli.js"}},"publishConfig":{"access":"public"},"scripts":{"build":"node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsgo -p tsconfig.json","typecheck":"tsgo -p tsconfig.json --noEmit"},"engines":{"node":">=22"},"_id":"@steipete/sweet-cookie@0.4.0","_integrity":"sha512-SREuwUPPVZOj0X4lp+3uN7/sP/I6J2HYY50usKfb5+uLSKUrrlU0TkKPaOx0XAKNR7VC4DpjbsVm0Z7hIo6U8w==","_resolved":"/private/tmp/sweet-cookie-v0.4.0.nUmKIU/steipete-sweet-cookie-0.4.0.tgz","_from":"file:/private/tmp/sweet-cookie-v0.4.0.nUmKIU/steipete-sweet-cookie-0.4.0.tgz","_nodeVersion":"25.8.1","_npmVersion":"11.11.0","dist":{"integrity":"sha512-SREuwUPPVZOj0X4lp+3uN7/sP/I6J2HYY50usKfb5+uLSKUrrlU0TkKPaOx0XAKNR7VC4DpjbsVm0Z7hIo6U8w==","shasum":"2aa2a351cc3c40e41b66438424e54350f0564ccc","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@steipete/sweet-cookie/-/sweet-cookie-0.4.0.tgz","fileCount":131,"unpackedSize":266262,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDP3kA9L4sauS5h9QC+3/oIvPQQFymDL1wlu0FYhT/xhwIgLcTF2OKb+SSvJA8biXTUFfZpvji80GWC8XZhRwDBGvc="}],"size":54438},"_npmUser":{"name":"anonymous","email":"steipete@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"steipete@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sweet-cookie_0.4.0_1781153715618_0.33804872460418633"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-06-11T04:55:15.765Z","publish_time":1781153715765,"_source_registry_name":"default","contributors":[]},"0.4.1":{"name":"@steipete/sweet-cookie","version":"0.4.1","description":"Inline-first browser cookie extraction for local tooling (no native addons).","homepage":"https://github.com/steipete/sweet-cookie#readme","bugs":{"url":"https://github.com/steipete/sweet-cookie/issues"},"license":"MIT","author":{"name":"Peter Steinberger"},"repository":{"type":"git","url":"git+https://github.com/steipete/sweet-cookie.git","directory":"packages/core"},"bin":{"sweet-cookie":"dist/cli.js"},"type":"module","main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./cli":{"types":"./dist/cli.d.ts","import":"./dist/cli.js"}},"publishConfig":{"access":"public"},"scripts":{"build":"node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.json","typecheck":"tsc -p tsconfig.json --noEmit"},"engines":{"node":">=22"},"_id":"@steipete/sweet-cookie@0.4.1","_nodeVersion":"24.18.0","_npmVersion":"11.16.0","dist":{"integrity":"sha512-6cuWTGeblwzMw4/3uMzBEmgH1B+crCkJJlmTVu4vzbhG2NhAH8sMWv57fQ8JZY0nqW2ldM0/c2JM0UeQQFyJ3g==","shasum":"a62c5ef27dc16abc1d41c262d43b363a9de09248","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@steipete/sweet-cookie/-/sweet-cookie-0.4.1.tgz","fileCount":131,"unpackedSize":268829,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDW8heQsziMSFXNAAS5rOI/KsqfJUghPicE/JqmEBVirgIgFLsKyPJIjPmzkfDtjcA4nTWYUstpzniC3vZ9/7smHzc="}],"size":55043},"_npmUser":{"name":"anonymous","email":"steipete@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"steipete@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sweet-cookie_0.4.1_1785648972087_0.255658953772512"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-08-02T05:36:12.224Z","publish_time":1785648972224,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"0.4.1"},"name":"@steipete/sweet-cookie","time":{"created":"2025-12-28T01:38:15.869Z","modified":"2026-08-02T05:36:26.129Z","0.1.0":"2025-12-28T01:33:41.463Z","0.2.0":"2026-03-08T01:38:05.466Z","0.3.0":"2026-05-14T21:27:56.721Z","0.4.0":"2026-06-11T04:55:15.765Z","0.4.1":"2026-08-02T05:36:12.224Z"},"readme":"# @steipete/sweet-cookie\n\nInline-first browser cookie extraction for local tooling (no native addons).\n\nSupports:\n\n- Inline payloads (JSON / base64 / file) — most reliable path.\n- Local browser reads (best effort): Chrome, Edge, Firefox, Safari (macOS).\n- On macOS, the `chrome` backend checks Chrome and Brave roots by default.\n- Default browser order is `chrome`, `safari`, `firefox` unless `browsers` or env overrides it.\n\nInstall:\n\n```bash\nnpm i @steipete/sweet-cookie\n```\n\nCLI:\n\n```bash\nnpx @steipete/sweet-cookie github.com\nnpx @steipete/sweet-cookie github.com --browser chrome --format header\n```\n\nUsage:\n\n```ts\nimport { getCookies, toCookieHeader } from \"@steipete/sweet-cookie\";\n\nconst { cookies, warnings } = await getCookies({\n\turl: \"https://example.com/\",\n\tnames: [\"session\", \"csrf\"],\n\tbrowsers: [\"chrome\", \"edge\", \"firefox\", \"safari\"],\n});\n\nfor (const w of warnings) console.warn(w);\nconst cookieHeader = toCookieHeader(cookies, { dedupeByName: true });\n```\n\nmacOS-specific Chromium targeting:\n\n```ts\nawait getCookies({\n\turl: \"https://example.com/\",\n\tbrowsers: [\"chrome\"],\n\tchromiumBrowser: \"brave\",\n});\n```\n\nLinux/Windows Brave or other Chromium-family profiles:\n\n```ts\nawait getCookies({\n\turl: \"https://example.com/\",\n\tbrowsers: [\"chrome\"],\n\tchromeProfile: \"~/.config/BraveSoftware/Brave-Browser/Default\",\n});\n```\n\nNotes:\n\n- `profile` is a shared alias for `chromeProfile` / `edgeProfile`.\n- `chromiumBrowser` pins the macOS `chrome` backend to `chrome`, `brave`, `arc`, or `chromium`.\n- Inline payloads win first; otherwise local backends run in declared order.\n- On Linux/Windows, Brave and other Chromium-family profiles work via an explicit `chromeProfile` path.\n- `edgeProfile` falls back to `SWEET_COOKIE_CHROME_PROFILE` when `SWEET_COOKIE_EDGE_PROFILE` is unset.\n- On Linux, Chromium safe-storage overrides also support `SWEET_COOKIE_BRAVE_SAFE_STORAGE_PASSWORD`.\n\nDocs + extension exporter: see the repo root README.","users":{}}