MCPcopy
hub / github.com/upstash/context7 / getConfigDir

Function getConfigDir

packages/cli/src/utils/storage-paths.ts:22–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20}
21
22export function getConfigDir(): string {
23 return xdgBase("XDG_CONFIG_HOME", ".config");
24}
25
26export function getStateDir(): string {
27 return xdgBase("XDG_STATE_HOME", ".local", "state");

Callers 3

getCredentialsFilePathFunction · 0.85
ensureConfigDirFunction · 0.85

Calls 1

xdgBaseFunction · 0.85

Tested by

no test coverage detected