ACIL FM
Dark
Refresh
Current DIR:
/lib/node_modules/npm/node_modules/libnpmexec/lib
/
lib
node_modules
npm
node_modules
libnpmexec
lib
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
file-exists.js
645 B
chmod
View
DL
Edit
Rename
Delete
get-bin-from-manifest.js
640 B
chmod
View
DL
Edit
Rename
Delete
index.js
8.01 MB
chmod
View
DL
Edit
Rename
Delete
is-windows.js
46 B
chmod
View
DL
Edit
Rename
Delete
no-tty.js
44 B
chmod
View
DL
Edit
Rename
Delete
run-script.js
1.78 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /lib/node_modules/npm/node_modules/libnpmexec/lib/file-exists.js
const { resolve } = require('path') const fs = require('@npmcli/fs') const walkUp = require('walk-up-path') const fileExists = async (file) => { try { const res = await fs.stat(file) return res.isFile() } catch { return false } } const localFileExists = async (dir, binName, root) => { for (const path of walkUp(dir)) { const binDir = resolve(path, 'node_modules', '.bin') if (await fileExists(resolve(binDir, binName))) { return binDir } if (path.toLowerCase() === resolve(root).toLowerCase()) { return false } } return false } module.exports = { fileExists, localFileExists, }
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply