Guide
get-cookie reads cookies from browser data already present on your local machine. Start with the path that matches what you are trying to do:
- Need a value in a shell? Start with Getting started, then keep the CLI reference nearby.
- Calling from TypeScript? Read Library usage.
- Want ideas for what to build? Browse Examples and recipes.
- Unsure whether your browser or operating system is covered? Check the browser support matrix.
- Seeing empty output, profile mismatches, or permission errors? Go to Troubleshooting.
Cookies often grant account access. Before scripting with them, read Security and privacy.
What the package does
The CLI can target a named browser, profile, Firefox container, or explicit store path. The root library helpers intentionally have a smaller contract: they query the default Chrome, Firefox, and Safari strategies with a required { name, domain } specification.
That distinction matters. Use the CLI when you need selection flags; use the library helpers when you want a small, typed API in local code.