Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

svgmini

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svgmini

Minify inline SVGs, use this to minify SVGs that are in your HTML/JSX files

  • 0.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

SVGMini Build Status Travis Build Status Appveyor npm version vscode marketplace extention

Extension

Get it from the VS Code Marketplace →

Run SVGMini: Minify SVGs in Current File from the command palette.


Explainer

Config

svgmini.replaceFill

When set SVGMini will replace all fill attributes in SVGs with currentColor. Defaults to false.

"svgmini.replaceFill": true


CLI

Install

Install via npm

yarn global add svgmini

or

npm install -g svgmini

or

Install from a github release:

curl -LSfs https://avencera.github.io/svgmini/install.sh | sh -s -- --git avencera/svgmini

or

Download a release directly from github: github.com/avencera/svgmini/releases

Run

Run on a file svgmini path/to_repo/index.html

Config

--replace-fill

When set SVGMini will replace all fill attributes in SVGs with currentColor. Defaults to false.


What?

A tool to minify SVGs that are contained in other documents (for example HTML or JSX files).

Why?

Lots of tools and plugins exist to minify SVGs for example:

However none of them did what I wanted, which was to minify SVGs within my HTML files.

Keywords

FAQs

Package last updated on 18 Feb 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc