Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
normalize-windows-path.js9 linesDownload Raw Back to esm
1// on windows, either \ or / are valid directory separators.
2// on unix, \ is a valid character in filenames.
3// so, on windows, and only on windows, we replace all \ chars with /,
4// so that we can use / as our one and only directory separator char.
5const platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
6export const normalizeWindowsPath = platform !== 'win32' ?
7    (p) => p
8    : (p) => p && p.replaceAll(/\\/g, '/');
9//# sourceMappingURL=normalize-windows-path.js.map
codekingpro/portable-devtools · Team Ai