electron-is-camera-on

Check if the built-in Mac camera is on

Usage no npm install needed!

<script type="module">
  import electronIsCameraOn from 'https://cdn.skypack.dev/electron-is-camera-on';
</script>

README

is-camera-on Build Status

Check if the built-in Mac camera is on

Install

$ npm install is-camera-on

Requires macOS 10.11 or later.

Usage

const isCameraOn = require('is-camera-on');

(async () => {
    console.log(await isCameraOn());
    //=> true
})();

Related

License

MIT © Sindre Sorhus