Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/local/lib/node_modules/strapi/node_modules/pino/ drwxr-xr-x | |
| Viewing file: Select action/file-type: #! /usr/bin/env node
'use strict'
var pretty = require('./pretty')
var fs = require('fs')
module.exports = pretty
if (arg('-h') || arg('--help')) {
usage().pipe(process.stdout)
} else if (arg('-v') || arg('--version')) {
console.log(require('./package.json').version)
} else {
process.stdin.pipe(pretty({
timeTransOnly: arg('-t'),
levelFirst: arg('-l'),
forceColor: arg('-c'),
messageKey: argWithParam('-m'),
dateFormat: argWithParam('--dateFormat'),
errorProps: paramToArray(argWithParam('--errorProps')),
errorLikeObjectKeys: paramToArray(argWithParam('--errorLikeObjectKeys')),
localTime: arg('--localTime')
})).pipe(process.stdout)
if (!process.stdin.isTTY && !fs.fstatSync(process.stdin.fd).isFile()) {
process.once('SIGINT', function noOp () {})
}
}
function usage () {
var help = require('path').join(__dirname, 'usage.txt')
return fs.createReadStream(help)
}
function arg (s) {
return !!~process.argv.indexOf(s)
}
function argWithParam (s) {
if (!arg(s)) {
return
}
var argIndex = process.argv.indexOf(s) + 1
var argValue = process.argv.length > argIndex &&
process.argv[argIndex]
if (!argValue) {
throw new Error(s + ' flag provided without a string argument')
}
return argValue
}
function paramToArray (param) {
if (!param) {
return
}
return param.split(/\s?,\s?/)
}
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0042 ]-- |