gulp-ext
v1.0.0
Published
> File extension utility
Downloads
887
Readme
gulp-ext [![Dependency Status][depstat-image]][depstat-url]
File extension utility
Help replace / crop / append file extensions.
Install
$ npm install --save-dev gulp-ext
Usage
var gulp = require('gulp');
var ext = require('gulp-ext');
gulp.task('default', function () {
return gulp.src('src/app.json')
.pipe(ext.append('bak'))
.pipe(gulp.dest('dist'));
});
API
ext.append([extension])
Type: String
Default: undefined
Appends extension.
ext.crop([extension])
Removes only extension, that passed as first argument. If not - crops any extension (app.ext.bak
-> app.ext
).
ext.replace(extension[, pattern])
Replaces whole extension on extension
argument or only matching pattern.
License
MIT © Vsevolod Strukchinsky