Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

macos-accessibility-permissions

Package Overview
Dependencies
3
Maintainers
1
Versions
2
Issues
File Explorer

Advanced tools

macos-accessibility-permissions

Check and request macOS accessibility permissions.

    1.0.1latest

Version published
Maintainers
1
Yearly downloads
4,432
increased by32.18%

Weekly downloads

Readme

Source

macos-accessibility-permissions

Check and request macOS accessibility permissions.

Requires macOS 10.12 or later. macOS 10.13 or earlier needs to download the Swift runtime support libraries.

Install

$ npm install macos-accessibility-permissions

Usage

const hasPermissions = require('macos-accessibility-permissions'); hasPermissions() // false hasPermissions({ask: true}) // false // After enabling permissions hasPermissions() // true

API

hasPermissions({hasAsked: boolean}): boolean

Returns true if the permissions are granted, and false otherwise. Optionally provide a hasAsked parameter to trigger the accessibility dialog

  • 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

Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc