X7ROOT File Manager
Current Path:
/usr/lib/node_modules/npm/node_modules/tar/lib
usr
/
lib
/
node_modules
/
npm
/
node_modules
/
tar
/
lib
/
ðŸ“
..
📄
buffer.js
(283 B)
📄
create.js
(2.32 KB)
📄
extract.js
(2.76 KB)
📄
header.js
(8.83 KB)
📄
high-level-opt.js
(772 B)
📄
large-numbers.js
(2.16 KB)
📄
list.js
(3.08 KB)
📄
mkdir.js
(5.06 KB)
📄
mode-fix.js
(277 B)
📄
pack.js
(9.39 KB)
📄
parse.js
(11.86 KB)
📄
pax.js
(3.97 KB)
📄
read-entry.js
(2.61 KB)
📄
replace.js
(5.36 KB)
📄
types.js
(1.07 KB)
📄
unpack.js
(16.46 KB)
📄
update.js
(852 B)
📄
warn-mixin.js
(309 B)
📄
winchars.js
(533 B)
📄
write-entry.js
(11.77 KB)
Editing: winchars.js
'use strict' // When writing files on Windows, translate the characters to their // 0xf000 higher-encoded versions. const raw = [ '|', '<', '>', '?', ':' ] const win = raw.map(char => String.fromCharCode(0xf000 + char.charCodeAt(0))) const toWin = new Map(raw.map((char, i) => [char, win[i]])) const toRaw = new Map(win.map((char, i) => [char, raw[i]])) module.exports = { encode: s => raw.reduce((s, c) => s.split(c).join(toWin.get(c)), s), decode: s => win.reduce((s, c) => s.split(c).join(toRaw.get(c)), s) }
Upload File
Create Folder