@lifaon/path
Version:
Useful tool to manage paths like the URL object
9 lines • 496 B
JavaScript
import { getProcess } from '../../functions/get-process.js';
import { POSIX_PATH_PLATFORM_CONFIG } from '../constants/posix-path-platform-config.constants.js';
import { WINDOWS_PATH_PLATFORM_CONFIG } from '../constants/windows-path-platform-config.constants.js';
export function getCurrentPathPlatformConfig() {
return getProcess().platform === 'win32'
? WINDOWS_PATH_PLATFORM_CONFIG
: POSIX_PATH_PLATFORM_CONFIG;
}
//# sourceMappingURL=get-current-path-platform-config.js.map