Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 482 Bytes

File metadata and controls

19 lines (13 loc) · 482 Bytes
description Modern alternatives to the find-cache-dir package for locating cache directories

Replacements for find-cache-dir

empathic

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