Socket
Socket
Sign inDemoInstall

gulp-find

Package Overview
Dependencies
11
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gulp-find

A string finder plugin for gulp


Version published
Weekly downloads
183
decreased by-19.03%
Maintainers
1
Install size
228 kB
Created
Weekly downloads
 

Readme

Source

gulp-find

Codacy Badge bitHound Overall Score bitHound Code Code Climate Build Status npm version Dependency Status devDependency Status GitHub license

Overview

Simple text finder(files, streams) via gulp.

NPM

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

Keywords

FAQs

Last updated on 10 May 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc