$ npm install --save toggle-screencapture-shadow
const toggle = require('toggle-screencapture-shadow')
toggle((err, disabled) => {
if (err) {
console.log(err)
return
}
console.log(`shadow is now ${disabled ? 'disabled' : 'enabled'}`)
})
// you can also set the new status directly
toggle.set(true | false, cb)
MIT © EGOIST