Skip to content

v1.3.0

Compare
Choose a tag to compare
@codebytere codebytere released this 25 Jan 03:46
028bcc9

Added the ability to check and query for authorization to Screen Capture:

const { askForScreenCaptureAccess, getAuthStatus } = require('node-mac-permissions')

const status = getAuthStatus('screen')

if (status !== 'authorized') {
  askForScreenCaptureAccess()
}