si = require('systeminformation') window.onload = () -> si.cpu() .then((data) -> console.log(data) ).catch((error) -> console.error(error) )