Quantumbraid/trainingdata / ui /node_modules /tar /dist /esm /normalize-windows-path.js
Quantumbraid's picture
download
raw
504 Bytes
// on windows, either \ or / are valid directory separators.
// on unix, \ is a valid character in filenames.
// so, on windows, and only on windows, we replace all \ chars with /,
// so that we can use / as our one and only directory separator char.
const platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
export const normalizeWindowsPath = platform !== 'win32' ?
(p) => String(p)
: (p) => String(p).replaceAll(/\\/g, '/');
//# sourceMappingURL=normalize-windows-path.js.map

Xet Storage Details

Size:
504 Bytes
·
Xet hash:
de68bd2b0d5f3a6a6764c7d72e211f0e5744edb2df2f49d1a8c6586f01c2393c

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.