gulp-find
v0.0.11
Published
A string finder plugin for gulp
Downloads
996
Maintainers
Readme
gulp-find
Overview
Simple text finder(files, streams) via gulp.
Install
npm install --save-dev gulp-find
Usage
Regex find
var find = require('gulp-find');
gulp.task('templates', function(){
gulp.src(['file.txt'])
.pipe(find(/foo(.{3})/g))
.pipe(gulp.dest('build/file.txt'));
});
String find
var find = require('gulp-find');
gulp.task('templates', function(){
gulp.src(['file.txt'])
.pipe(find('bar'))
.pipe(gulp.dest('build/file.txt'));
});
What if I need replace?
Use gulp-replace for string replace.
if you need first find, and replace after, you may combine gulp-find
and gulp-replace
via pipe
Legal Disclaimer
This project is provided "as is", without warranty of any kind. The authors and contributors disclaim all liability for any damages arising from its use, inability to use, or performance. Users are responsible for ensuring compliance with applicable laws and regulations in their jurisdiction, including but not limited to:
- European Union: Cyber Resilience Act (CRA) and Artificial Intelligence Act (AI Act)
- United States: Uniform Commercial Code (UCC) and Export Administration Regulations (EAR)
- China: Cybersecurity Law
- India: Information Technology Act
For details, see the full DISCLAIMER.md file.