Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
gulp-zopfli-node
Advanced tools
a Zopfli plugin for gulp,
based on zopfli-node
.
Note: This is a fork of gulp-zopfli that hasn't been updated in a long time and uses an old version of node-zopfli
(replaced by zopfli-node
in this package).
npm install --save-dev gulp-zopfli
##Options
String
Choose an output format, you can choose between gzip
, zlib
or deflate
. Defaults to gzip.
zopfli({ format: 'zlib' })
Boolean
Appends .gz
, .zz
or .deflate
file extension if true depending on the format chosen. Defaults to true.
zopfli({ append: true })
String|Number|Boolean
Minimum size required to compress a file. Defaults to false.
zopfli({ threshold: '1kb' })
zopfli({ threshold: 1024 })
zopfli({ threshold: true })
Object
Options object to pass through to zopfli-node. See zopfli-node documentation for more information.
{
verbose: false,
verbose_more: false,
numiterations: 15,
blocksplitting: true,
blocksplittinglast: false,
blocksplittingmax: 15
};
var gulp = require("gulp");
var zopfli = require("gulp-zopfli");
gulp.task("compress", function() {
gulp.src("./dev/scripts/*.js")
.pipe(zopfli())
.pipe(gulp.dest("./public/scripts"));
});
gulp.task("default", function() {
gulp.run("compress");
});
This plugin is based on gulp-gzip.
FAQs
Zopfli compressor for gulp
The npm package gulp-zopfli-node receives a total of 11 weekly downloads. As such, gulp-zopfli-node popularity was classified as not popular.
We found that gulp-zopfli-node demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.