gulp-insecurity
v1.2.0
Published
Gulp plugin for detecting insecure URLs that could cause mixed content errors.
Downloads
8
Readme
gulp-insecurity
Gulp plugin for insecurity. Prints warnings when files in the stream contain insecure URLs.
Installation
npm install gulp-insecurity
Usage
var insecurity = require("insecurity");
gulp.task("js", function () {
gulp.src("src/js/*.js")
.pipe(insecurity.js())
.pipe(gulp.dest("public/js"));
});
gulp.task("css", function () {
gulp.src("src/less/*.less")
.pipe(less())
.pipe(insecurity.css())
.pipe(gulp.dest("public/css"));
});
insecurity.html(options)
Returns a stream that will check HTML files for insecure URLs and print warnings to stdout
. Takes the same options as insecurity.html.
insecurity.css(options)
Returns a stream that will check CSS files for insecure URLs and print warnings to stdout
. Takes the same options as insecurity.css.
insecurity.js(options)
Returns a stream that will check JS files for insecure URLs and print warnings to stdout
. Takes the same options as insecurity.js.
insecurity.text(options)
Returns a stream that will check text files for insecure URLs and print warnings to stdout
. Takes the same options as insecurity.text.