Giter Site home page Giter Site logo

get-cookie's Introduction

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

get-cookie's People

Contributors

dependabot[bot] avatar dominicfinn avatar mherod avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

dominicfinn

get-cookie's Issues

Cant seem to run

ERROR /opt/homebrew/lib/node_modules/@mapbox/node-pre-gyp/lib/util/versioning.js:220
throw new Error(msg + 'package.json must declare these properties: \n' + missing.join('\n'));
^

ERROR Error: sqlite3 package.json is not node-pre-gyp ready:
package.json must declare these properties:
binary.module_name
binary.module_path
binary.host
at Object.validate_config (/opt/homebrew/lib/node_modules/@mapbox/node-pre-gyp/lib/util/versioning.js:220:11)
at Object.exports.find (/opt/homebrew/lib/node_modules/@mapbox/node-pre-gyp/lib/pre-binding.js:25:14)
at Object. (/opt/homebrew/lib/node_modules/@mherod/get-cookie/dist/cli.js:2:680688)
at aO (/opt/homebrew/lib/node_modules/@mherod/get-cookie/dist/cli.js:2:35240)
at Object. (/opt/homebrew/lib/node_modules/@mherod/get-cookie/dist/cli.js:2:678253)
at aO (/opt/homebrew/lib/node_modules/@mherod/get-cookie/dist/cli.js:2:35240)
at Object. (/opt/homebrew/lib/node_modules/@mherod/get-cookie/dist/cli.js:2:802754)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Object.require.extensions. [as .js] (/opt/homebrew/lib/node_modules/ts-node/src/index.ts:1608:43)

I am getting this error when I try to run the terminal command.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.