/usr/local/lib/node_modules/npm/node_modules/tar/dist/esm
NameSizeModeActions
create.js21630644editdlrm
cwd-error.js3100644editdlrm
extract.js16920644editdlrm
get-write-flag.js10180644editdlrm
header.js110960644editdlrm
index.js6470644editdlrm
index.min.js829670644editdlrm
large-numbers.js25810644editdlrm
list.js34440644editdlrm
make-command.js18700644editdlrm
mkdir.js57390644editdlrm
mode-fix.js7530644editdlrm
normalize-unicode.js10090644editdlrm
normalize-windows-path.js4900644editdlrm
options.js16390644editdlrm
pack.js144020644editdlrm
package.json230644editdlrm
parse.js227980644editdlrm
path-reservations.js54470644editdlrm
pax.js47540644editdlrm
process-umask.js1560644editdlrm
read-entry.js41750644editdlrm
replace.js72050644editdlrm
strip-absolute-path.js10600644editdlrm
strip-trailing-slashes.js4890644editdlrm
symlink-error.js3900644editdlrm
types.js12770644editdlrm
unpack.js336090644editdlrm
update.js10060644editdlrm
warn-method.js7950644editdlrm
winchars.js5490644editdlrm
write-entry.js227810644editdlrm
Edit: /usr/local/lib/node_modules/npm/node_modules/tar/dist/esm/options.js (1639B)
// 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'], ['onentry', 'onReadEntry'], ]); export const isSyncFile = (o) => !!o.sync && !!o.file; export const isAsyncFile = (o) => !o.sync && !!o.file; export const isSyncNoFile = (o) => !!o.sync && !o.file; export const isAsyncNoFile = (o) => !o.sync && !o.file; export const isSync = (o) => !!o.sync; export const isAsync = (o) => !o.sync; export const isFile = (o) => !!o.file; export const isNoFile = (o) => !o.file; const dealiasKey = (k) => { const d = argmap.get(k); if (d) return d; return k; }; export const dealias = (opt = {}) => { if (!opt) return {}; const result = {}; for (const [key, v] of Object.entries(opt)) { // TS doesn't know that aliases are going to always be the same type const k = dealiasKey(key); result[k] = v; } // affordance for deprecated noChmod -> chmod if (result.chmod === undefined && result.noChmod === false) { result.chmod = true; } delete result.noChmod; return result; }; //# sourceMappingURL=options.js.map