---
url: /docs/replacements/find-file-up.md
description: >-
  Modern alternatives to the find-file-up package for finding files by walking
  up parent directories
---

# Replacements for `find-file-up`

## `empathic`

[`empathic`](https://github.com/lukeed/empathic) provides a more generic way to find files and directories upwards.

The main difference is that `empathic` is *synchronous*, so you should no longer `await` the result.

Example:

```ts
import * as find from 'empathic/find' // [!code ++]
import findUp from 'find-file-up' // [!code --]

await findUp('package.json', cwd) // [!code --]
find.file('package.json', { cwd }) // [!code ++]
```
