
Product
Introducing Rust Support in Socket
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
metalsmith-gzip
Advanced tools
A Metalsmith plugin that lets you create gzipped versions of your build files. This is useful if you are hosting your website on Amazon S3, where it is not possible to set up compression on the server.
$ npm install metalsmith-gzip
var Metalsmith = require('metalsmith');
var compress = require('metalsmith-gzip');
var metalsmith = new Metalsmith(__dirname)
.use(compress());
metalsmith-gzip will produce a gzipped version of all files in your build whose extension matches the following regular expression
/\.[html|css|js|json|xml|svg|txt]/
The choice of files to compress is loosely based on the HTML5 Boilerplate server configuration.
You will then need to set up a script yourself to upload the gzipped versions of the files to your preferred hosting provider. Take care that the files are served with the correct Content-Encoding.
At the moment, metalsmith-gzip does not take any configuration options.
The functionality was inspired by the Middleman gzip extension.
FAQs
A Metalsmith plugin to compress build files with gzip.
The npm package metalsmith-gzip receives a total of 41 weekly downloads. As such, metalsmith-gzip popularity was classified as not popular.
We found that metalsmith-gzip 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.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.