UNPKG

akey-mac-screen-capture-permissions

Version:

Check and request permission to capture the screen

10 lines (8 loc) 228 B
const os = require('os'); const {spawnSync} = require('child_process'); if (os.platform() === 'darwin') { spawnSync('npm', ['run', 'native_build'], { input: 'darwin detected. Build native module.', stdio: 'inherit' }); }