@mherod/get-cookie
TypeScript icon, indicating that this package has built-in type declarations

2.1.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @mherod/get-cookie

Weekly Downloads

3

Version

2.1.1

License

ISC

Unpacked Size

1.76 MB

Total Files

96

Last publish

Collaborators

  • mherod