@intlayer/config
Version:
Retrieve Intlayer configurations and manage environment variables for both server-side and client-side environments.
17 lines (15 loc) • 500 B
JavaScript
//#region src/utils/normalizePath.ts
/**
* Normalize a path for glob by replacing backslashes with forward slashes
*
* Utils for Windows compatibility, as Glob pattern as `**\\*.js` is not supported
*
* C:\\Users\\John\\Desktop\\test.txt -> C:/Users/John/Desktop/test.txt
*
* @param path - The path to normalize
* @returns The normalized path
*/
const normalizePath = (path) => path.replace(/\\/g, "/");
//#endregion
exports.normalizePath = normalizePath;
//# sourceMappingURL=normalizePath.cjs.map