HEX
Server: Apache/2.4.61 (Ubuntu)
System: Linux hosting106 7.0.12-1-pve #1 SMP PREEMPT_DYNAMIC PMX 7.0.12-1 (2026-06-09T21:07Z) x86_64
User: clinicadentalargarate.com (1193)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /home/cursos.ril.es/node_modules/laravel-elixir/Logger.js
var fs = require('fs');
var path = require('path');
var gutil = require('gulp-util');

/**
 * Create a new Logger constructor.
 */
var Logger = function() {};

/**
 * Log a heading to the console.
 *
 * @param  {string} heading
 * @return {Logger}
 */
Logger.heading = function(heading) {
    console.log(''); // line break

    console.log(
        gutil.colors.black(gutil.colors.bgGreen(heading))
    );

    return Logger;
};

/**
 * Log a general message to the console.
 *
 * @param  {string} message
 * @return {Logger}
 */
Logger.message = function(message) {
    console.log(message);

    return Logger;
};

/**
 * Log a set of files to the console.
 *
 * @param  {string|Array} files
 * @param  {boolean}      checkForFiles
 * @return {Logger}
 */
Logger.files = function(files, checkForFiles) {
    files = Array.isArray(files) ? files : [files];
    var spacer = '   - ';

    files.forEach(function(file) {
        if ( ! checkForFiles || assertFileExists(file)) {
            console.log(spacer + file);
        } else {
            console.log(spacer + gutil.colors.bgRed(file) + ' <-- Not Found');
        }
    });

    console.log(); // For a line break.

    return Logger;
};

/**
 * Assert that the given file exists.
 *
 * @param  {string} file
 * @return {boolean}
 */
var assertFileExists = function(file) {
    // If this file begins with a !, then the user
    // intends to exclude it from their src set.
    if (file.indexOf('!') == 0) {
        file = file.slice(1);
    }
    
    return file.match(/\*/) || fs.existsSync(file);
};

module.exports = Logger;