Replaces a file extension in a path. Returns the new path.
isStream(obj)
Returns true or false if an object is a stream.
isBuffer(obj)
Returns true or false if an object is a Buffer.
template(string[, data])
This is a lodash.template function wrapper. You must pass in a valid gulp file object so it is available to the user or it will error. You can not configure any of the delimiters. Look at the lodash docs for more info.
var file = new gutil.File({ base: path.join(__dirname, './fixtures/'), cwd: __dirname, path: path.join(__dirname, './fixtures/test.coffee')});
noop()
Returns a stream that does nothing but pass data straight through.
// gulp should be called like this :// $ gulp --type productiongulp.task('scripts', function() { gulp.src('src/**/*.js') .pipe(concat('script.js')) .pipe(gutil.env.type === 'production' ? uglify() : gutil.noop()) .pipe(gulp.dest('dist/'));});
buffer(cb)
This is similar to es.wait but instead of buffering text into one string it buffers anything into an array (so very useful for file objects).
Returns a stream that can be piped to.
The stream will emit one data event after the stream piped to it has ended. The data will be the same array passed to the callback.
Callback is optional and receives two arguments: error and data