MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getXDGDataHome

Function getXDGDataHome

src/utils/xdg.ts:52–55  ·  view source on GitHub ↗
(options?: XDGOptions)

Source from the content-addressed store, hash-verified

50 * @param options Optional env and homedir overrides for testing
51 */
52export 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)

Callers 2

getBaseDirectoriesFunction · 0.85
linuxDesktopPathFunction · 0.85

Calls 1

resolveOptionsFunction · 0.85

Tested by

no test coverage detected