code: function check(cmd, filter, mapping, coefficient = 1) {
    return new Promise((resolve, reject) => {
      exec(cmd, (error, stdout) => {
        if (error) {
          reject(error)
        }
  
        try {
          resolve(mapOutput(stdout, filter, mapping, coefficient))
        } catch (err) {
          reject(err)
        }
      })
    })
  }
docs: Run the command and do common things between win32 and unix
  
  @param {String} cmd - The command to execute
  @param {Function} filter - To filter drives (only used for win32)
  @param {Object} mapping - Map between column index and normalized column name
  @param {Number} coefficient - The size coefficient to get bytes instead of kB
  @return {Promise} -