code: function mapOutput(stdout, filter, mapping, coefficient = 1) {
    const parsed = stdout.trim().split('\n').slice(1).map(line => {
      return line.trim().split(/\s+(?=[\d/])/)
    })
  
    let filtered = parsed.filter(filter)
  
    if (filtered.length === 0) {
      throw new NoMatchError()
    }
    filtered = filtered[0]
  
    return {
      diskPath: filtered[mapping.diskPath],
      free: parseInt(filtered[mapping.free], 10) * coefficient,
      size: parseInt(filtered[mapping.size], 10) * coefficient
    }
  }
docs: Maps command output to a normalized object {free, size}
  
  @param {String} stdout - The command output
  @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 {Object} - {free, size} normalized object