Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

macos-manage-apps

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

macos-manage-apps

Launch and terminate apps on macOS

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
30
increased by30.43%
Maintainers
1
Weekly downloads
 
Created
Source

macos-manage-apps

Launch and terminate apps on macOS

If you're on macOS 10.14.3 or earlier, you need to download the Swift runtime support libraries.

Install

$ npm install macos-manage-apps

Usage

const {launchApp, terminateApp} = require('macos-manage-apps');

(async () => {
  await launchApp('com.sindresorhus.Dato');

  await terminateApp('com.sindresorhus.Dato');
})();

API

launchApp(bundleId: string): Promise<true>

Tries to launch the app with the given bundle identifier. It will resolve if it succeeds, and reject with an error otherwise.

bundleId

The bundle identifier of the app.

terminateApp(bundleId: string): Promise<true>

Tries to terminate the app with the given bundle identifier. It will resolve if it succeeds, and reject with an error otherwise.

bundleId

The bundle identifier of the app.

isAppRunning(bundleId: string): Promise<true>

Check whether the app with the given bundle identifier is running. It will resolve with true if it's running and false otherwise.

bundleId

The bundle identifier of the app.

  • mac-focus-window - Focus a window and bring it to the front on macOS
  • mac-windows - Provide Information about Application Windows running

License

MIT

Keywords

FAQs

Package last updated on 01 May 2020

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc