
Security News
Feross on Risky Business Weekly Podcast: npm’s Ongoing Supply Chain Attacks
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
broccoli-svg-optimizer
Advanced tools
Broccoli plugin for optimizing SVG files by SVGO with a persistent cache for fast restarts.
npm install --save-dev broccoli-svg-optimizer
var SVGOptimizer = require('broccoli-svg-optimizer');
var outputNode = new SVGOptimizer(inputNode, {
persist: false,
svgoConfig: {
plugins: [{ removeTitle: true }],
},
});
Type: Object
Default: null
Enable\disable\configure SVGO plugins to customize SVG optimization. Most of the plugins are enabled by default. Check out SVGO repository for available options.
Example:
svgoConfig: {
plugins: [
{ removeUselessStrokeAndFill: false },
{ removeAttrs: { attrs: '(fill|fill-rule)' } },
{ removeTitle: true },
{ removeDesc: { removeAny: true } },
];
}
Type: reference to a custom svgo
module
Default: svgo
module defined in broccoli-svg-optimizer
dependencies
Sets custom svgo
module.
Example:
const SVGOptimizer = require('broccoli-svg-optimizer');
let outputNode = new SVGOptimizer(inputNode, {
svgoModule: require('svgo'),
});
Type: Boolean
Default: true
Enable\disable a persistent cache to improve build performance across restarts. Check out broccoli-persistent-filter for more details.
npm install
npm test
This project is distributed under the MIT license.
FAQs
Broccoli plugin for optimizing SVG files with SVGO
The npm package broccoli-svg-optimizer receives a total of 0 weekly downloads. As such, broccoli-svg-optimizer popularity was classified as not popular.
We found that broccoli-svg-optimizer 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
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.