[go: up one dir, main page]

Skip to content

A Gulp plugin to scan a file for a particular string or expression

License

Notifications You must be signed in to change notification settings

ioloie/gulp-scan

 
 

Repository files navigation

gulp-scan Build Status

A plugin to scan a file for a string or expression

Install

$ npm install --save-dev gulp-scan

Usage

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

gulp.task('default', function () {
	return gulp.src('src/file.ext')
		.pipe(scan({ term: '@import', fn: function (match) {
			// do something with {String} match
		}}));
});

API

scan(options)

options

term

Type: string or RegExp

A term to scan the file for. Can be either a string or regular expression.

fn

Type: Function

A function that will receive the individual matches found in a file.

License

MIT © Gilt Groupe

About

A Gulp plugin to scan a file for a particular string or expression

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 90.4%
  • CSS 9.6%