Camera

... text ...

For function reference and examples we assume, that we imported systeminformation as follows:

const si = require('systeminformation');

Detected Camera Devices

All functions in this section return a promise or can be called with a callback function (parameter cb in the function reference)

Function Result object Linux BSD Mac Win Sun Comments
si.camera(cb) [{...}] X X X camera information
name X X X camera name
vendor X X X vendor / manufacturer
model X X X model / product id
serial X X X serial number
connection X X X e.g. 'internal', 'usb'
Example
const si = require('systeminformation');
si.camera().then(data => console.log(data));
[
  {
    name: 'FaceTime HD Camera',
    vendor: 'Apple',
    model: '',
    serial: '',
    connection: 'internal'
  }
]