gulp-debug

Debug vinyl file streams

npm install gulp-debug
82 downloads in the last day
327 downloads in the last week
1 489 downloads in the last month

gulp-debug Build Status

Debug vinyl file streams

Install

$ npm install --save-dev gulp-debug

Usage

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

gulp.task('default', function () {
    gulp.src('foo.js')
        .pipe(debug({verbose: true}))
        .pipe(gulp.dest('dist'));
});

API

debug(options)

options

title

Type: string
Default: ''

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

verbose

Type: Boolean
Default: false

Show more debugging:

  • the file stat object
  • shows more of the contents, from 40 bytes to 400 bytes

License

MIT © Sindre Sorhus

npm loves you