PATH: //lib/node_modules/npm/node_modules/tar/lib
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 create.js
↓
X
📄 extract.js
↓
X
📄 get-write-flag.js
↓
X
📄 header.js
↓
X
📄 high-level-opt.js
↓
X
📄 large-numbers.js
↓
X
📄 list.js
↓
X
📄 mkdir.js
↓
X
📄 mode-fix.js
↓
X
📄 normalize-unicode.js
↓
X
📄 normalize-windows-path.js
↓
X
📄 pack.js
↓
X
📄 parse.js
↓
X
📄 path-reservations.js
↓
X
📄 pax.js
↓
X
📄 read-entry.js
↓
X
📄 replace.js
↓
X
📄 strip-absolute-path.js
↓
X
📄 strip-trailing-slashes.js
↓
X
📄 types.js
↓
X
📄 unpack.js
↓
X
📄 update.js
↓
X
📄 warn-mixin.js
↓
X
📄 winchars.js
↓
X
📄 write-entry.js
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: 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'], ]) 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)) : {}
SIMPAN PERUBAHAN