PHP 8.2.30
Preview: high-level-opt.js Size: 772 B
/usr/lib/node_modules/npm/node_modules/tar/lib/high-level-opt.js

'use strict'

// turn tar(1) style args like `C` into the more verbose things like `cwd`

const argmap = new Map([
  ['C', 'cwd'],
  ['f', 'file'],
  ['z', 'gzip'],
  ['P', 'preservePaths'],
  ['U', 'unlink'],
  ['strip-components', 'strip'],
  ['stripComponents', 'strip'],
  ['keep-newer', 'newer'],
  ['keepNewer', 'newer'],
  ['keep-newer-files', 'newer'],
  ['keepNewerFiles', 'newer'],
  ['k', 'keep'],
  ['keep-existing', 'keep'],
  ['keepExisting', 'keep'],
  ['m', 'noMtime'],
  ['no-mtime', 'noMtime'],
  ['p', 'preserveOwner'],
  ['L', 'follow'],
  ['h', 'follow']
])

const parse = module.exports = opt => opt ? Object.keys(opt).map(k => [
  argmap.has(k) ? argmap.get(k) : k, opt[k]
]).reduce((set, kv) => (set[kv[0]] = kv[1], set), Object.create(null)) : {}

Directory Contents

Dirs: 0 × Files: 20

Name Size Perms Modified Actions
283 B lrw-r--r-- 2021-03-10 14:36:37
Edit Download
2.32 KB lrw-r--r-- 2021-03-10 14:36:37
Edit Download
2.76 KB lrw-r--r-- 2021-03-10 14:36:37
Edit Download
8.83 KB lrw-r--r-- 2021-03-10 14:36:37
Edit Download
772 B lrw-r--r-- 2021-03-10 14:36:37
Edit Download
2.16 KB lrw-r--r-- 2021-03-10 14:36:37
Edit Download
3.08 KB lrw-r--r-- 2021-03-10 14:36:37
Edit Download
5.06 KB lrw-r--r-- 2021-03-10 14:36:37
Edit Download
277 B lrw-r--r-- 2021-03-10 14:36:37
Edit Download
9.39 KB lrw-r--r-- 2021-03-10 14:36:37
Edit Download
11.86 KB lrw-r--r-- 2021-03-10 14:36:37
Edit Download
3.97 KB lrw-r--r-- 2021-03-10 14:36:37
Edit Download
2.61 KB lrw-r--r-- 2021-03-10 14:36:37
Edit Download
5.36 KB lrw-r--r-- 2021-03-10 14:36:37
Edit Download
1.07 KB lrw-r--r-- 2021-03-10 14:36:37
Edit Download
16.46 KB lrw-r--r-- 2021-03-10 14:36:37
Edit Download
852 B lrw-r--r-- 2021-03-10 14:36:37
Edit Download
309 B lrw-r--r-- 2021-03-10 14:36:37
Edit Download
533 B lrw-r--r-- 2021-03-10 14:36:37
Edit Download
11.77 KB lrw-r--r-- 2021-03-10 14:36:37
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).