{"_id":"@connormartin/sweet-cookie","name":"@connormartin/sweet-cookie","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@connormartin/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/Yorkemartin/sweet-cookie.git","directory":"packages/core"},"bugs":{"url":"https://github.com/Yorkemartin/sweet-cookie/issues"},"homepage":"https://github.com/Yorkemartin/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"},"_id":"@connormartin/sweet-cookie@0.1.0","gitHead":"408950338804c9179d75d95156817e2fd1429c29","_nodeVersion":"22.13.1","_npmVersion":"11.5.2","dist":{"integrity":"sha512-eHOrnuj9M4Th1yWFGvVDm5Pvdxwt0f91/k66cowh5+57t+A5cPWudyaDRQhTE6dPLj8sRanTKB3gYTrspyYuGA==","shasum":"0ed9b7aff62de832e872a67a22e1e5fbf0051d0f","tarball":"https://registry.npmjs.org/@connormartin/sweet-cookie/-/sweet-cookie-0.1.0.tgz","fileCount":127,"unpackedSize":195290,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFdSs/NDCwu/l6ow/d4UTMFZlMoz9HxnmaonUhK1HN+NAiEA2++3HsQakGYQT2CBk4nTd6zeB9eqLj7YSxYqi/5ahc8="}]},"_npmUser":{"name":"connormartin","email":"cnr.mrtn@gmail.com"},"directories":{},"maintainers":[{"name":"connormartin","email":"cnr.mrtn@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sweet-cookie_0.1.0_1770221388060_0.5507541667896332"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-04T16:09:47.993Z","0.1.0":"2026-02-04T16:09:48.218Z","modified":"2026-02-04T16:09:48.456Z"},"maintainers":[{"name":"connormartin","email":"cnr.mrtn@gmail.com"}],"description":"Inline-first browser cookie extraction for local tooling (no native addons).","homepage":"https://github.com/Yorkemartin/sweet-cookie#readme","repository":{"type":"git","url":"git+https://github.com/Yorkemartin/sweet-cookie.git","directory":"packages/core"},"author":{"name":"Peter Steinberger"},"bugs":{"url":"https://github.com/Yorkemartin/sweet-cookie/issues"},"license":"MIT","readme":"# @steipete/sweet-cookie\n\nInline-first browser cookie extraction for local tooling (no native addons).\n\nSupports:\n- Inline payloads (JSON / base64 / file) — most reliable path.\n- Local browser reads (best effort): Chrome, Edge, Firefox, Safari (macOS).\n\nInstall:\n```bash\nnpm i @steipete/sweet-cookie\n```\n\nUsage:\n```ts\nimport { getCookies, toCookieHeader } from '@steipete/sweet-cookie';\n\nconst { cookies, warnings } = await getCookies({\n  url: 'https://example.com/',\n  names: ['session', 'csrf'],\n  browsers: ['chrome', 'edge', 'firefox', 'safari'],\n});\n\nfor (const w of warnings) console.warn(w);\nconst cookieHeader = toCookieHeader(cookies, { dedupeByName: true });\n```\n\nDocs + extension exporter: see the repo root README.\n\n","readmeFilename":"README.md","_rev":"1-05fb46a37536872424564b0aa90ce40c"}