ACIL FM
Dark
Refresh
Current DIR:
/lib/node_modules/npm/node_modules/node-gyp/lib
/
lib
node_modules
npm
node_modules
node-gyp
lib
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
build.js
5.69 MB
chmod
View
DL
Edit
Rename
Delete
clean.js
355 B
chmod
View
DL
Edit
Rename
Delete
configure.js
10.15 MB
chmod
View
DL
Edit
Rename
Delete
create-config-gypi.js
4.59 MB
chmod
View
DL
Edit
Rename
Delete
find-node-directory.js
2.32 MB
chmod
View
DL
Edit
Rename
Delete
find-python.js
11.85 MB
chmod
View
DL
Edit
Rename
Delete
Find-VisualStudio.cs
7.75 MB
chmod
View
DL
Edit
Rename
Delete
find-visualstudio.js
14.04 MB
chmod
View
DL
Edit
Rename
Delete
install.js
11.83 MB
chmod
View
DL
Edit
Rename
Delete
list.js
641 B
chmod
View
DL
Edit
Rename
Delete
node-gyp.js
4.78 MB
chmod
View
DL
Edit
Rename
Delete
process-release.js
5.65 MB
chmod
View
DL
Edit
Rename
Delete
rebuild.js
314 B
chmod
View
DL
Edit
Rename
Delete
remove.js
1.28 MB
chmod
View
DL
Edit
Rename
Delete
util.js
1.87 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /lib/node_modules/npm/node_modules/node-gyp/lib/util.js
'use strict' const log = require('npmlog') const execFile = require('child_process').execFile const path = require('path') function logWithPrefix (log, prefix) { function setPrefix (logFunction) { return (...args) => logFunction.apply(null, [ prefix, ...args ]) // eslint-disable-line } return { silly: setPrefix(log.silly), verbose: setPrefix(log.verbose), info: setPrefix(log.info), warn: setPrefix(log.warn), error: setPrefix(log.error) } } function regGetValue (key, value, addOpts, cb) { const outReValue = value.replace(/\W/g, '.') const outRe = new RegExp(`^\\s+${outReValue}\\s+REG_\\w+\\s+(\\S.*)$`, 'im') const reg = path.join(process.env.SystemRoot, 'System32', 'reg.exe') const regArgs = ['query', key, '/v', value].concat(addOpts) log.silly('reg', 'running', reg, regArgs) const child = execFile(reg, regArgs, { encoding: 'utf8' }, function (err, stdout, stderr) { log.silly('reg', 'reg.exe stdout = %j', stdout) if (err || stderr.trim() !== '') { log.silly('reg', 'reg.exe err = %j', err && (err.stack || err)) log.silly('reg', 'reg.exe stderr = %j', stderr) return cb(err, stderr) } const result = outRe.exec(stdout) if (!result) { log.silly('reg', 'error parsing stdout') return cb(new Error('Could not parse output of reg.exe')) } log.silly('reg', 'found: %j', result[1]) cb(null, result[1]) }) child.stdin.end() } function regSearchKeys (keys, value, addOpts, cb) { var i = 0 const search = () => { log.silly('reg-search', 'looking for %j in %j', value, keys[i]) regGetValue(keys[i], value, addOpts, (err, res) => { ++i if (err && i < keys.length) { return search() } cb(err, res) }) } search() } module.exports = { logWithPrefix: logWithPrefix, regGetValue: regGetValue, regSearchKeys: regSearchKeys }
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply