Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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);
```