gulp-pangu is a Gulp extension to add space between Chinese and English characters to file(s) in the pipeline.
The algorithm is from paranoid-auto-spacing
var pangu = require('gulp-pangu');
$ npm install --save-dev gulp-pangu
// include the required packages.
var gulp = require('gulp');
var pangu = require('gulp-pangu');
gulp.task('pangu', function() {
gulp.src(['./test.html'])
.pipe(pangu())
.pipe(gulp.dest('./dist/'));
});
Released under the MIT License.