gulp-iconv
v0.0.1
Published
gulp-iconv ==========
Downloads
13
Readme
gulp-iconv
Run ashtuchkin/iconv-lite and translate encoding.
Iconv in gulp.
Install
$ npm install --save-dev gulp-iconv
Usage
var gulp = require('gulp');
var iconv = require('gulp-iconv');
gulp.task('default', function () {
return gulp.src('index.html')
.pipe(iconv({
decoding: 'euc_jp',
encoding: 'shift_jis'
}));
});
API
iconv(options)
options
decoding
Type: string
Default: 'utf8'
The encoding of input stream. See Supported encodings.
encoding
Type: string
Default: 'utf8'
The encoding of output stream. See Supported encodings.