| description | Modern alternatives to the find-cache-dir package for locating cache directories |
|---|
empathic provides a more generic way to find files and directories upwards.
Example:
import * as pkg from 'empathic' // [!code ++]
import findCacheDirectory from 'find-cache-dir' // [!code --]
findCacheDirectory({ name: 'foo' }) // [!code --]
pkg.cache('foo') // [!code ++]