MCPcopy Index your code
hub / github.com/upstash/context7 / getCacheDir

Function getCacheDir

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

Source from the content-addressed store, hash-verified

28}
29
30export function getCacheDir(): string {
31 return xdgBase("XDG_CACHE_HOME", ".cache");
32}
33
34export function getCredentialsFilePath(): string {
35 return path.join(getConfigDir(), CREDENTIALS_FILE_NAME);

Callers 2

getPreviewsDirFunction · 0.85

Calls 1

xdgBaseFunction · 0.85

Tested by

no test coverage detected