code: function platform() {
      var cpus = os.cpus();
      var cpu = cpus[0];
      cpu.cores = cpus.length;
      var tmpPlatform = os.platform();
      if (/^win/.test(tmpPlatform))
          tmpPlatform = 'windows';
      else if (tmpPlatform === 'darwin' || tmpPlatform === 'freebsd')
          tmpPlatform = 'mac';
      else if (tmpPlatform === 'linux')
          tmpPlatform = 'linux';
      return {
          platform: tmpPlatform,
          arch: os.arch(),
          release: os.release(),
          hostname: os.hostname(),
          homedir: os.homedir(),
          cpu: cpu
      };
  }
docs: Platform
  Gets information and paths for the current platform.