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.40 node_modules/tar/lib/normalize-windows-path.js
immosquare-cleaner-0.1.39 node_modules/tar/lib/normalize-windows-path.js
immosquare-cleaner-0.1.38 node_modules/tar/lib/normalize-windows-path.js
immosquare-cleaner-0.1.32 node_modules/tar/lib/normalize-windows-path.js
immosquare-cleaner-0.1.31 node_modules/tar/lib/normalize-windows-path.js
immosquare-cleaner-0.1.30 node_modules/tar/lib/normalize-windows-path.js
immosquare-cleaner-0.1.29 node_modules/tar/lib/normalize-windows-path.js
immosquare-cleaner-0.1.28 node_modules/tar/lib/normalize-windows-path.js
immosquare-cleaner-0.1.27 node_modules/tar/lib/normalize-windows-path.js
immosquare-cleaner-0.1.26 node_modules/tar/lib/normalize-windows-path.js
immosquare-cleaner-0.1.25 node_modules/tar/lib/normalize-windows-path.js
immosquare-cleaner-0.1.24 node_modules/tar/lib/normalize-windows-path.js
immosquare-cleaner-0.1.23 node_modules/tar/lib/normalize-windows-path.js
disco_app-0.16.1 test/dummy/node_modules/tar/lib/normalize-windows-path.js
disco_app-0.15.2 test/dummy/node_modules/tar/lib/normalize-windows-path.js
disco_app-0.18.4 test/dummy/node_modules/tar/lib/normalize-windows-path.js
disco_app-0.18.1 test/dummy/node_modules/tar/lib/normalize-windows-path.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/tar/lib/normalize-windows-path.js
disco_app-0.14.0 test/dummy/node_modules/tar/lib/normalize-windows-path.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/tar/lib/normalize-windows-path.js