toPath = (value, fileURLToPath = nodeUrl.fileURLToPath) => {
  return value instanceof URL || value.startsWith('file://')
    ? fileURLToPath(value)
    : value
}
Converts a path-like value to a string

@param {string | URL} value Path-like value. If a string, should have a
  `file://` scheme
@param {FileURLToPathFn} [fileURLToPath] `fileURLToPath` implementation
@returns {string} A filepath