const si = require('systeminformation'); si.graphics().then(data => { console.log(JSON.stringify(data, null, 2)); }).catch(error => { console.error('Error:', error); });