Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 543 Bytes

File metadata and controls

21 lines (14 loc) · 543 Bytes
description Modern alternatives to the find-pkg package for finding package.json files

Replacements for find-pkg

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 pkg from 'empathic/package' // [!code ++]
import findPkg from 'find-pkg' // [!code --]

await findPkg(path) // [!code --]
pkg.up(path) // [!code ++]