Check if the built-in Mac camera is on
$ npm install is-camera-on
Requires macOS 10.11 or later.
const isCameraOn = require('is-camera-on');
(async () => {
console.log(await isCameraOn());
//=> true
})();
- is-camera-on-cli - CLI for this module
MIT © Sindre Sorhus