Replacements for find-file-up
empathic
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'
import findUp from 'find-file-up'
await findUp('package.json', cwd)
find.file('package.json', { cwd })