PHP 8.2.30
Preview: proclog.js Size: 340 B
/proc/self/root/opt/alt/alt-nodejs11/root/usr/lib/node_modules/npm/node_modules/pacote/lib/util/proclog.js

'use strict'

const LEVELS = [
  'notice',
  'error',
  'warn',
  'info',
  'verbose',
  'http',
  'silly',
  'pause',
  'resume'
]

const logger = {}
for (const level of LEVELS) {
  logger[level] = log(level)
}
module.exports = logger

function log (level) {
  return (category, ...args) => process.emit('log', level, category, ...args)
}

Directory Contents

Dirs: 0 × Files: 6

Name Size Perms Modified Actions
129 B lrw-r--r-- 2021-10-19 09:47:51
Edit Download
419 B lrw-r--r-- 2021-10-19 09:47:51
Edit Download
7.29 KB lrw-r--r-- 2021-10-19 09:47:51
Edit Download
1.19 KB lrw-r--r-- 2021-10-19 09:47:51
Edit Download
1.03 KB lrw-r--r-- 2021-10-19 09:47:51
Edit Download
340 B lrw-r--r-- 2021-10-19 09:47:51
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).