gulp-contains
Throws an error or calls a callback if a given string is found in a file.
Useful for dumb quality checking.
Install
$ npm install --save-dev gulp-contains
Usage
The following code will throw an error if "../node_modules" is found in any Sass or SCSS file.
var gulp = ;var contains = ; gulp;
The contains function accepts a string, a regular expression or an array of either (any of which, when matched, will cause an error to be thrown).
You can also specify a callback function, in which you can handle the error yourself or choose to completely ignore it:
var gulp = ;var contains = ; gulp;
License
Released under the MIT license.