(options?: XDGOptions)
| 30 | * @param options Optional env and homedir overrides for testing |
| 31 | */ |
| 32 | export function getXDGStateHome(options?: XDGOptions): string { |
| 33 | const { env, home } = resolveOptions(options) |
| 34 | return env.XDG_STATE_HOME ?? join(home, '.local', 'state') |
| 35 | } |
| 36 | |
| 37 | /** |
| 38 | * Get XDG cache home directory |
no test coverage detected