Quantumbraid's picture
download
raw
627 Bytes
const levels = {
silent: 0,
error: 1,
warn: 2,
notice: 3,
http: 4,
timing: 5,
info: 6,
verbose: 7,
silly: 8
}
module.exports = function (rc, env) {
const level = rc.verbose
? 'verbose'
: env.npm_config_loglevel || 'notice'
const logAtLevel = function (messageLevel) {
return function (...args) {
if (levels[messageLevel] <= levels[level]) {
console.error(`prebuild-install ${messageLevel} ${args.join(' ')}`)
}
}
}
return {
error: logAtLevel('error'),
warn: logAtLevel('warn'),
http: logAtLevel('http'),
info: logAtLevel('info'),
level
}
}

Xet Storage Details

Size:
627 Bytes
·
Xet hash:
71cc85cf1fb9c51be2ea8658a37c9cd5ba09c90cfc357d2ae21085b30ccb9b94

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.