1.0.2 • Published 4 years ago

havelock.js v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

Havelock

Havelock is a simple Node package capable of extracting data such as logins, cookies, and URLs from Chromium-based web browsers such as Google Chrome.

Installation

The module can be installed via Yarn with one command:

yarn add havelock.js

That’s it, get started using the section below.

Usage

Havelock provides a simple API that is easy to use, you can for example extract logins from Google Chrome using this code:

const havelock = require("havelock.js");

havelock
  .getData("chrome", "Default", "Login Data")
  .then(value => {
    console.log(value);
  })
  .catch(reason => {
    console.log(reason);
  });

This code assumes that Google Chrome is installed, your profile is Default, and data exists in the file Login Data.

There are also short-hand methods based on files of interest, like:

const havelock = require("havelock.js");

havelock
  .getLoginData("chrome", "Default")
  .then(value => {
    console.log(value);
  })
  .catch(reason => {
    console.log(reason);
  });

Supported Web Browsers

Havelock supports all Chromium-based web browsers that use the user data directory for storing user data.

These are supported out of the box:

NameIdentifierPlatform(s)
ChromiumchromiumWindows, macOS, Linux
Google ChromechromeWindows, macOS, Linux
Google Chrome Betachrome-betaLinux
Google Chrome Canarychrome-canaryWindows, macOS
Google Chrome Devchrome-devLinux

If your web browser isn’t listed here, you can use the getDataFromPath() function. You need to know the full path to the file and which table to access.

License

MIT License

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago