MCPcopy Index your code
hub / github.com/cameri/nostream / getConfigBaseDir

Function getConfigBaseDir

src/cli/utils/paths.ts:7–7  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5export const getProjectPath = (...parts: string[]): string => join(getProjectRoot(), ...parts)
6
7export const getConfigBaseDir = (): string => process.env.NOSTR_CONFIG_DIR ?? getProjectPath('.nostr')
8
9export const getSettingsFilePath = (): string => join(getConfigBaseDir(), 'settings.yaml')
10

Callers 3

ensureSettingsExistsFunction · 0.90
ensureConfigBootstrapFunction · 0.90
getSettingsFilePathFunction · 0.85

Calls 1

getProjectPathFunction · 0.85

Tested by

no test coverage detected