getFilePath

View as MarkdownOpen in Claude

Return the absolute path of the loaded config file, or null if configuration was loaded from an object via loadFromObject().

Parameters

None.

Returns

string | null — The file path, or null if config was not loaded from a file.

Example

1import { ConfigLoader } from '@signalwire/sdk';
2
3const config = new ConfigLoader('./config.json');
4
5console.log('Loaded from:', config.getFilePath());
6// e.g., "/home/user/project/config.json"