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

cleanup-svg-icons

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

cleanup-svg-icons

Clean up SVGs to be actually usable as icons

  • 1.0.2
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

cleanup-svg-icons

Clean up SVGs to be actually usable as icons

  • Optimize the SVG (merge paths, etc.)
  • Remove elements that are useless (e.g. <title>)
  • Remove attributes that are useless (e.g. id, data-*)
  • Make sure that class names are not colliding (e.g. AI always exports with cls-1, cls-2, etc.)
  • Replace hardcoded colors with currentColor so we can use the parent for styling
  • Make sure that fill: none is working when fill: currentColor is on the parent

Usage

:warning: This modifies files directly, please use version control or make a backup.

npm install -g cleanup-svg-icons
cleanup-svg-icons "/the/path/to/a/folder/or/any/glob/*.svg"

FAQs

Package last updated on 25 Apr 2018

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