First upload version 0.0.1

This commit is contained in:
Neyra
2026-02-05 15:27:49 +08:00
commit 8e9b7201ed
4182 changed files with 593136 additions and 0 deletions

31
node_modules/cmake-js/lib/npmConfig.js generated vendored Normal file
View File

@@ -0,0 +1,31 @@
'use strict'
function getNpmConfig() {
const npmOptions = {}
const npmConfigPrefix = 'npm_config_'
Object.keys(process.env).forEach(function (name) {
if (name.indexOf(npmConfigPrefix) !== 0) {
return
}
const value = process.env[name]
name = name.substring(npmConfigPrefix.length)
if (name) {
npmOptions[name] = value
}
}, this)
return npmOptions
}
module.exports = function (log) {
log.verbose('CFG', 'Looking for NPM config.')
const options = getNpmConfig()
if (options) {
log.silly('CFG', 'NPM options:', options)
} else {
log.verbose('CFG', 'There are no NPM options available.')
}
return options
}