gulp-debug

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

Github stars Tracking Chart

gulp-debug Build Status

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

Install

$ npm install --save-dev gulp-debug

Usage

const gulp = require('gulp');
const debug = require('gulp-debug');

exports.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: fancy-log

Provide your own logging utility in place of fancy-log. The message is passed as a string in the first argument. Note that ANSI colors may be used in the message.

Main metrics

Overview
Name With Ownersindresorhus/gulp-debug
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 1)
Platform
License:MIT License
所有者活动
Created At2014-01-09 06:06:38
Pushed At2023-11-03 08:41:43
Last Commit At
Release Count19
Last Release Namev5.0.1 (Posted on 2023-11-03 15:40:41)
First Release Namev0.1.0 (Posted on 2014-01-09 07:08:37)
用户参与
Stargazers Count220
Watchers Count5
Fork Count29
Commits Count51
Has Issues Enabled
Issues Count33
Issue Open Count1
Pull Requests Count6
Pull Requests Open Count0
Pull Requests Close Count9
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private