ben-eb/gulp-cat

Option to display file contents in a particular color

Open

#4 geöffnet am 12. Aug. 2014

Auf GitHub ansehen
 (8 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (4 Forks)github user discovery
enhancementhelp wanted

Repository-Metriken

Stars
 (10 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

This is an Enhancement suggestion, but I don't know how to add the tag..

It would be great if we could set a color for the displayed file, so it doesn't get lost in the console amongst the other stuff.

I noticed you are using "process.stdout.write" to print out the contents of files.

So perhaps we could do something like:

var color       = require('ansi-color').set;
process.stdout.write(color("file contents in string format", some_ansi_color_string_var));

and then use gulp-cat like

gulp.task('taskname', function() {
    gulp.src('./README.md')
        .pipe(cat( { color: "blue" } ));
});

Contributor Guide