si = require('systeminformation') window.onload = () -> si.graphics() .then((data) -> document.getElementById('gpuInfo').innerText = data.controllers[0].model console.log(data) ).catch((error) -> console.error(error) )