fd-gulp-convert-encoding

0.0.1 • Public • Published

基于gulp的将文件转换成指定编码的插件

用法

convertEncoding(encoding)

例子

var gulp = require('gulp');
var convertEncoding = require('fd-gulp-convert-encoding');
gulp.task('convertEncoding', function() {
    return gulp.src('./source/gbk.js')
                .pipe(convertEncoding('utf-8'))
                .pipe(gulp.dest('./dest/'));
});

参数

encoding string(必须)

你希望将文件转换成的编码

/fd-gulp-convert-encoding/

    Package Sidebar

    Install

    npm i fd-gulp-convert-encoding

    Weekly Downloads

    17

    Version

    0.0.1

    License

    ISC

    Last publish

    Collaborators

    • fangdeng