Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/.nvm/versions/node/v18.17.1/lib/node_modules/pm2/lib/tools/ drwxr-xr-x | |
| Viewing file: Select action/file-type: // --------------------------------------------------------------------------------------------------------------------
//
// fmt.js - Command line output formatting.
//
// Copyright (c) 2012 Andrew Chilton - http://chilts.org/
// Written by Andrew Chilton <andychilton@gmail.com>
//
// License: http://opensource.org/licenses/MIT
//
// --------------------------------------------------------------------------------------------------------------------
var util = require('util');
// --------------------------------------------------------------------------------------------------------------------
var sep = '===============================================================================';
var line = '-------------------------------------------------------------------------------';
var field = ' ';
// --------------------------------------------------------------------------------------------------------------------
// separator
module.exports.separator = function() {
console.log(sep);
};
// alias the above
module.exports.sep = module.exports.separator;
// line
module.exports.line = function() {
console.log(line);
};
// title
module.exports.title = function(title) {
var out = '--- ' + title + ' ';
out += line.substr(out.length);
console.log(out);
};
// field
module.exports.field = function(key, value) {
console.log('' + key + field.substr(key.length) + ' : ' + value);
};
// subfield
module.exports.subfield = function(key, value) {
console.log('- ' + key + field.substr(key.length + 2) + ' : ' + value);
};
// list item
module.exports.li = function(msg) {
console.log('* ' + msg);
};
// dump
module.exports.dump = function(data, name) {
if ( name ) {
console.log(name + ' :', util.inspect(data, false, null, true));
}
else {
console.log(util.inspect(data, false, null, true));
}
};
// msg
module.exports.msg = function(msg) {
console.log(msg);
};
// --------------------------------------------------------------------------------------------------------------------
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0031 ]-- |