castroCrea / node-is-camera-on

Check if the built-in Mac camera is on

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Check if the built-in Mac camera is on

License:MIT License


Languages

Language:JavaScript 56.9%Language:Swift 43.1%