Socket
Book a DemoInstallSign in
Socket

@antitoxic/mac-openchrometab

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antitoxic/mac-openchrometab

Opens URL in chrome, reusing tab if present

1.0.0
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

@antitoxic/mac-openchrometab

  • npm package which offers a single function called openChromeTab
  • openChromeTab opens a URL in Google Chrome (or other Chromium alternative), reusing tab if present
  • if tab is not opened already, it will attempt to load the URL in a tab which is blank (about:blank) or create a new tab
  • if Google Chrome is not running, it will start it
  • if Google Chrome window is unfocused or minimized, it will respectively focus & un-minimize

To make work, this package uses a JXA script written in TypeScript. Even though JXA is outdated and unsupported JavaScript, the TypeScript offers more familiar development environment than the usual AppleScript used for automating mac.

Usage

import { openChromeTab } from '@antitoxic/mac-openchrometab';
//...
openChromeTab('http://localhost:8080');

Use cases

  • During active web development, you can automatically open or reuse already opened tab
  • Writing scripts to focus on specific tab you know the url of.

FAQs

Package last updated on 10 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.