(options?: XDGOptions)
| 40 | * @param options Optional env and homedir overrides for testing |
| 41 | */ |
| 42 | export function getXDGCacheHome(options?: XDGOptions): string { |
| 43 | const { env, home } = resolveOptions(options) |
| 44 | return env.XDG_CACHE_HOME ?? join(home, '.cache') |
| 45 | } |
| 46 | |
| 47 | /** |
| 48 | * Get XDG data home directory |
no test coverage detected