Socket
Socket
Sign inDemoInstall

macos-accessibility-permissions

Package Overview
Dependencies
25
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

macos-accessibility-permissions

Check and request macOS accessibility permissions.


Version published
Maintainers
1
Weekly downloads
72
increased by35.85%

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

FAQs

Last updated on 20 Dec 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc