Needlessly Provoking Marsupials

    gulp-ext

    1.0.0 • Public • Published

    gulp-ext NPM version Build Status [![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

    Keywords

    Install

    npm i gulp-ext

    DownloadsWeekly Downloads

    687

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • floatdrop