PATH: //opt/alt/alt-nodejs14/root/usr/lib/node_modules/npm/node_modules/tar/lib
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 buffer.js
↓
X
📄 create.js
↓
X
📄 extract.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-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: strip-trailing-slashes.js
// this is the only approach that was significantly faster than using // str.replace(/\/+$/, '') for strings ending with a lot of / chars and // containing multiple / chars. const batchStrings = [ '/'.repeat(1024), '/'.repeat(512), '/'.repeat(256), '/'.repeat(128), '/'.repeat(64), '/'.repeat(32), '/'.repeat(16), '/'.repeat(8), '/'.repeat(4), '/'.repeat(2), '/', ] module.exports = str => { for (const s of batchStrings) { while (str.length >= s.length && str.slice(-1 * s.length) === s) str = str.slice(0, -1 * s.length) } return str }
SIMPAN PERUBAHAN