Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 608 Bytes

File metadata and controls

21 lines (14 loc) · 608 Bytes
description
Modern alternatives to the find-file-up package for finding files by walking up parent directories

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:

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 ++]