@foundryapp/accessibility-node
Advanced tools
Comparing version 1.0.13 to 1.0.14
{ | ||
"name": "@foundryapp/accessibility-node", | ||
"descriptiop": "Node.js wrapper for the macOS accessibility API", | ||
"version": "1.0.13", | ||
"version": "1.0.14", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "gypfile": true, |
## Installation & usage | ||
`yarn add @foundryapp/accessibility-node` | ||
### Initialization | ||
```javascript | ||
const ax = require('@foundryapp/accessibility-node'); // ax means accessibility | ||
// isProcessTrusted() returns boolean indicating whether a process has accessibility permissions. | ||
// If the process isn't trusted, the method will also prompt user to give this process accessibility permissions. | ||
const isTrusted = ax.isProcessTrusted(); | ||
``` | ||
@@ -16,2 +13,4 @@ | ||
```javascript | ||
// isProcessTrusted() returns boolean indicating whether a process has accessibility permissions. | ||
// If the process isn't trusted, the method will also prompt user to give this process accessibility permissions. | ||
const isTrusted = ax.isProcessTrusted(); | ||
@@ -22,3 +21,3 @@ ``` | ||
```javascript | ||
const isRunning = ax.isAppRunning('com.app.Terminal'); | ||
const isRunning = ax.isAppRunning('com.apple.Terminal'); | ||
``` | ||
@@ -25,0 +24,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
446348
55