# is-camera-on

> Check if a Mac camera is on

Latest version **4.0.0** (published 2025-09-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-camera-on
pnpm add is-camera-on
yarn add is-camera-on
bun add is-camera-on
```

## Health

**Score 60/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 4.0.0 |
| Published | 2025-09-23 |
| First published | 2017-04-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Node | >=20 |
| Dependencies | 2 |
| Unpacked size | 270.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 97 |
| Author | Sindre Sorhus |
| Maintainers | sindresorhus |
| Keywords | macos, camera, webcam, cam, builtin, built-in, internal, status, on, off, enabled, disabled, used, swift |

## Links

- npm: https://www.npmjs.com/package/is-camera-on
- Repository: https://github.com/sindresorhus/node-is-camera-on
- Homepage: https://github.com/sindresorhus/node-is-camera-on#readme
- Issues: https://github.com/sindresorhus/node-is-camera-on/issues
- Funding: https://github.com/sponsors/sindresorhus
- npm.io page: https://npm.io/package/is-camera-on

## Dependencies (2)

- [execa](https://npm.io/package/execa.md) ^9.6.0
- [macos-version](https://npm.io/package/macos-version.md) ^6.0.0

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 4.0.0 (latest) — 2025-09-23
- 3.1.0 — 2022-01-10
- 3.0.0 — 2021-11-03
- 2.0.0 — 2017-09-13
- 1.0.0 — 2017-04-24

## README

# is-camera-on

> Check if a Mac camera is on

## Install

```sh
npm install is-camera-on
```

Requires macOS 10.15 or later.

## Usage

```js
import isCameraOn, {isCameraOnChanges} from 'is-camera-on';

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

// Watch for camera status changes
for await (const status of isCameraOnChanges()) {
	console.log(`Camera is ${status ? 'on' : 'off'}`);
}
```

## API

### isCameraOn()

Returns a promise that resolves with a boolean indicating whether the camera is on.

### isCameraOnChanges()

Returns an async iterator that yields the camera status as a boolean whenever it changes. The current status is emitted immediately.

## Related

- [is-camera-on-cli](https://github.com/sindresorhus/is-camera-on-cli) - CLI for this package

---
_Source: https://npm.io/package/is-camera-on · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
