Sha256: d585da94804cf3c623eda666c6068bc513b5f3bed1fa44e0f15bcc98b38fbdd2

Contents?: true

Size: 410 Bytes

Versions: 40

Compression:

Stored size: 410 Bytes

Contents

// 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
module.exports = platform !== 'win32' ? p => p
  : p => p && p.replace(/\\/g, '/')

Version data entries

40 entries across 40 versions & 2 rubygems

Version Path
immosquare-cleaner-0.1.60 node_modules/tar/lib/normalize-windows-path.js
immosquare-cleaner-0.1.59 node_modules/tar/lib/normalize-windows-path.js
immosquare-cleaner-0.1.58 node_modules/tar/lib/normalize-windows-path.js
immosquare-cleaner-0.1.57 node_modules/tar/lib/normalize-windows-path.js
immosquare-cleaner-0.1.56 node_modules/tar/lib/normalize-windows-path.js
immosquare-cleaner-0.1.55 node_modules/tar/lib/normalize-windows-path.js
immosquare-cleaner-0.1.54 node_modules/tar/lib/normalize-windows-path.js
immosquare-cleaner-0.1.53 node_modules/tar/lib/normalize-windows-path.js
immosquare-cleaner-0.1.52 node_modules/tar/lib/normalize-windows-path.js
immosquare-cleaner-0.1.51 node_modules/tar/lib/normalize-windows-path.js
immosquare-cleaner-0.1.50 node_modules/tar/lib/normalize-windows-path.js
immosquare-cleaner-0.1.49 node_modules/tar/lib/normalize-windows-path.js
immosquare-cleaner-0.1.48 node_modules/tar/lib/normalize-windows-path.js
immosquare-cleaner-0.1.47 node_modules/tar/lib/normalize-windows-path.js
immosquare-cleaner-0.1.46 node_modules/tar/lib/normalize-windows-path.js
immosquare-cleaner-0.1.45 node_modules/tar/lib/normalize-windows-path.js
immosquare-cleaner-0.1.44 node_modules/tar/lib/normalize-windows-path.js
immosquare-cleaner-0.1.43 node_modules/tar/lib/normalize-windows-path.js
immosquare-cleaner-0.1.42 node_modules/tar/lib/normalize-windows-path.js
immosquare-cleaner-0.1.41 node_modules/tar/lib/normalize-windows-path.js