Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mherod/get-cookie
Node.js tool for querying a local user's Chrome or Firefox cookies
https://github.com/mherod/get-cookie
chrome firefox node-crypto nodejs sqlite3
Last synced: 11 days ago
JSON representation
Node.js tool for querying a local user's Chrome or Firefox cookies
- Host: GitHub
- URL: https://github.com/mherod/get-cookie
- Owner: mherod
- Created: 2022-05-14T21:01:00.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-08T12:11:11.000Z (7 months ago)
- Last Synced: 2024-09-01T21:04:15.851Z (4 months ago)
- Topics: chrome, firefox, node-crypto, nodejs, sqlite3
- Language: TypeScript
- Homepage:
- Size: 899 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# get-cookie
## What is it?
get-cookie is a command line utility that allows you to get the value of a cookie from your locally installed browser.
It is useful for testing web pages that require authentication.## Installation
To install get-cookie, run the following command:
$ npm install @mherod/get-cookie --global
**Note: Currently only macOS is supported. Windows support is planned for a future release.**
## How do I use it?
To use get-cookie, run the following command:
$ get-cookie
For example, to get the value of the `auth` cookie on the `www.example.com` domain, run the following command:
$ get-cookie auth www.example.com
The output of the command will be the value of the cookie.
The library can also be used as a module.
```javascript
const { getCookie } = require("@mherod/get-cookie");
getCookie("auth", "www.example.com").then(console.log);
```