Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
gulp-zopfli
Advanced tools
a Zopfli plugin for gulp, based on node-zopfli.
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 node-zopfli. See node-zopfli 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
We found that gulp-zopfli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.