5.0.1 • Published 1 year ago

gulp-debug v5.0.1

Weekly downloads
88,811
License
MIT
Repository
github
Last release
1 year ago

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.

5.0.1

1 year ago

5.0.0

1 year ago

4.0.0

7 years ago

3.2.0

7 years ago

3.1.0

8 years ago

3.0.0

8 years ago

2.1.2

9 years ago

2.1.1

9 years ago

2.1.0

9 years ago

2.0.1

10 years ago

2.0.0

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.3.1

10 years ago

0.3.0

11 years ago

0.2.0

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago