1. gulp-debug
Debug Vinyl file streams to see what files are run through your Gulp pipeline
gulp-debug
Package: gulp-debug
Created by: sindresorhus
Last modified: Fri, 03 Nov 2023 08:41:41 GMT
Version: 5.0.1
License: MIT
Downloads: 359,630
Repository: https://github.com/sindresorhus/gulp-debug

Install

npm install gulp-debug
yarn add gulp-debug

gulp-debug

Debug Vinyl file streams to see what files are run through your Gulp pipeline

Install

 npm install --save-dev gulp-debug

Usage

 import gulp from 'gulp';
import debug from 'gulp-debug';

export default () => (
	gulp.src('foo.js')
		.pipe(debug({title: 'unicorn:'}))
		.pipe(gulp.dest('dist'))
);

API

debug(options?)

options

Type: object

title

Type: string
Default: 'gulp-debug:'

Give it a custom title so it's possible to distinguish the output of multiple instances logging at once.

minimal

Type: boolean
Default: true

By default only relative paths are shown. Turn off minimal mode to also show cwd, base, path.

The stat property will be shown when you run gulp in verbose mode: gulp --verbose.

showFiles

Type: boolean
Default: true

Print filenames.

showCount

Type: boolean
Default: true

Print the file count.

logger(message)

Type: Function
Default: console.log

Provide your own logging utility.

The message is passed as a string in the first argument. Note that ANSI colors may be used in the message.

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code