Skip to content

Node.js tool for querying a local user's Chrome or Firefox cookies

Notifications You must be signed in to change notification settings

mherod/get-cookie

Repository files navigation

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 <cookie-name> <domain>

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.

const { getCookie } = require("@mherod/get-cookie");
getCookie("auth", "www.example.com").then(console.log);

About

Node.js tool for querying a local user's Chrome or Firefox cookies

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published