@mherod/get-cookie
v2.1.3
Published
Node.js module for querying a local user's Chrome cookie
Downloads
27
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 <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);