Open
Description
Packages such as these:
- find-pkg
- replaced by
pkg.up({ cwd })
- replaced by
- find-file-up
- replaced by
find.up(name, { cwd })
- replaced by
- find-up-simple
- replaced by
find.up(name, { cwd })
- replaced by
- find-up
- replaced by
find.up(name, { cwd })
- replaced by
- pkg-dir
- replaced by
dirname(pkg.up({ cwd }))
- replaced by
- find-cache-dir
- replaced by
pkg.cache
- replaced by
- find-cache-directory
- replaced by
pkg.cache
- replaced by
and more, can all be replaced by empathic:
https://github.com/lukeed/empathic
this is much faster and usually smaller to install
empathic is ESM only. if that blocks us, we can use fd-package-json to find the closest package.json
. but there is no obvious replacement for the generic case. you could use walk-up-path
but would need more inline logic
with require(esm)
being in all LTS of node now, we may be able to use empathic
still if the projects have a high enough engine requirement