(options?: XDGOptions)
| 50 | * @param options Optional env and homedir overrides for testing |
| 51 | */ |
| 52 | export function getXDGDataHome(options?: XDGOptions): string { |
| 53 | const { env, home } = resolveOptions(options) |
| 54 | return env.XDG_DATA_HOME ?? join(home, '.local', 'share') |
| 55 | } |
| 56 | |
| 57 | /** |
| 58 | * Get user bin directory (not technically XDG but follows the convention) |
no test coverage detected