| description |
|---|
Modern alternatives to the find-file-up package for finding files by walking up parent directories |
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:
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 ++]