Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-search

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-search

A string search plugin for gulp

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

A string search plugin for gulp 3

Usage

First, install gulp-search as a development dependency:

npm install --save-dev gulp-search

Then, add it to your gulpfile.js:

var search = require('gulp-search');

gulp.task('templates', function(){
  gulp.src([...])
    .pipe(search(/foo(.{3})/g, function(item) {return item;}, {
    	path: '',
    	filename: 'a.json'
    }))
    .pipe(gulp.dest('...'));
});

API

gulp-search can be called with a regex.

search(regex, formatFn[, options])

regex

Type: RegExp

The regex pattern to search for. See the MDN documentation for RegExp for details.

formatFn

Type: Function

The formatFn function. Tell the plugin how to return the key and value for JSON file.

gulp-search options

An optional third argument, options, can be passed.

options

Type: Object

options.path

Type: string
Default: ''

options.filename

Type: string
Default: 'gulp-search-menifest.json'

Keywords

FAQs

Package last updated on 19 Jan 2016

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc