code: function cpuTemperature() {
    if (_windows) {
      return(NOT_SUPPORTED);
    }
    if (_linux) {
      return(NOT_SUPPORTED);
    }
  
    if (_darwin) {
      let result = {
        main: -1.0,
        cores: [],
        max: -1.0
      };
      let smc = require('../build/Release/smc');
  
      let cores = ['TC0P', 'TC1C', 'TC2C', 'TC3C', 'TC4C', 'TC5C', 'TC6C', 'TC7C', 'TC8C'];
      let sum = 0;
      let id = 0;
      cores.forEach(function(key) {
        let value = smc.get(key);
        if (id === 0) {
          if (value > 0) {
            result.main = value;
            result.max = value;
          }
          id = 1;
        } else {
          if (value > 0) {
            result.cores.push(value);
            sum = sum + value;
            if (value > result.max) result.max = value;
          }
        }
      });
      if (result.cores.length) {
        result.main = sum / result.cores.length;
      }
  
      return(result);
    }
  }
docs: -------------------------- CPU - temperature if sensors are installed