browser-tabs

Gets the open Tabs of Browsers

Usage no npm install needed!

<script type="module">
  import browserTabs from 'https://cdn.skypack.dev/browser-tabs';
</script>

README

browser-tabs

Node module that lists open Browser Tabs. Currently supports Firefox and Chrome.

Installation

You need nodejs and npm for this. Then you need node-gyp, you can install it via

npm install -g node-gyp

Then you can run:

npm install browser-tabs

Usage

Simply require the package and call it.

var browserTabs = require("browser-tabs");

var chromeTabs = browserTabs.chrome();
var firefoxTabs = browserTabs.firefox();

Where

  • .chrome() returns a simple Array of URLs
  • .firefox() returns the content of the sessionstore.js file