It is a plugin for gulp that transforms xml and html with JS plugins using cheerio API.
npm i gulp-postxml --save-dev
var postxml = require('gulp-postxml');
var postxmlPlugins = [
require('postxml-plugin')
];
var cheerioOptions = {};
gulp.task('html', function () {
gulp.src('index.htm')
.pipe(postxml(postxmlPlugins, cheerioOptions))
.pipe(gulp.dest('out'));
})