gulp-string-replacer
v1.2.2
Published
A lightweight plugin for gulp to replace the expression in the text file
Downloads
6
Readme
gulp-string-replacer
A lightweight plugin for gulp to replace the expression in the text file
Usage
const replacer = require('gulp-replacer');
gulp.src('./src/filename.txt')
.pipe(rename({ regex: 'foo', replacement: 'bar' }))
.pipe(gulp.dest('./dist'));
gulp.src('./src/filename.txt')
.pipe(rename([
{ regex: 'foo', replacement: 'bar' },
{ regex: /buzz/, replacement: 'bar' }
]))
.pipe(gulp.dest('./dist'));