!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

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)

/var/www/html/node-red/node_modules/grunt-jsdoc/tasks/lib/   drwxr-xr-x
Free 13.31 GB of 57.97 GB (22.96%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     exec.js (2.21 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
var path = require('path');
var spawn = require('cross-spawn');
/**
 * Provides utility methods to execute a command
 * @module exec
 */
module.exports = {

    /**
     * Build and execute a child process using the spawn function
     * @param {Object} grunt - the grunt context
     * @param {String} script - the script to run
     * @param {Array} sources - the list of sources files
     * @param {Object} params - the list of cli flags
     * @return {ChildProcess} from the spawn
     */
    buildSpawned: function(grunt, script, sources, params) {

        var flag;
        var cmd = script;
        var args =[];


        // Compute JSDoc options
        for (flag in params) {
            if (params.hasOwnProperty(flag)) {
                if (params[flag] !== false) {
                    args.push('--' + flag);
                }
                if (typeof params[flag] === 'string') {
                    args.push(params[flag]);
                }
            }
        }

        if (!Array.isArray(sources)) {
            sources = [sources];
        }
        args = args.concat(sources);

        grunt.log.debug('Running : ' + cmd + ' ' + args.join(' '));

        return spawn(cmd, args);
    },

    /**
     * Lookup file or path into node modules
     * @param {Object} grunt - the grunt context
     * @returns {String} the first matching resolved path or nothing if not found
     */
    lookup: function(grunt) {
        var i, binPath, paths;
        var nodePath = process.env.NODE_PATH || '';

        //check first the base path into the cwd
        paths = [
            __dirname + '/../../node_modules/.bin/jsdoc',
            __dirname + '/../../node_modules/jsdoc/jsdoc.js',
            __dirname + '/../../../jsdoc/jsdoc.js'
        ];

        //fall back on global if not found at the usual location
        nodePath.split(path.delimiter).forEach(function(p) {
            if (!/\/$/.test(p)) {
                p += '/';
            }
            paths.push(p + '/jsdoc/jsdoc.js');
        });

        for (i in paths) {
            binPath = path.resolve(paths[i]);
            if (grunt.file.exists(binPath) && grunt.file.isFile(binPath)) {
                return binPath;
            }
        }

        return;
    }
};


:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0239 ]--