Skip to content

Mass editing svgs to remove gunk that designer facing software tends to add

Notifications You must be signed in to change notification settings

BrentonWheeler/svgood

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

SVgood

What

Mass editing svgs to remove gunk that designer facing software tends to add

What exactly

It culls defs and g elements, saving only path and moving up to the top level of the svg element so developers can more easily style the svg and it's not being set to a certain color/transform at a lower level down.

Usage

You are REQUIRED to give a icon source directory via the node env variable ICON_SOURCE and can optionally give a destination via the node env variable ICON_DESTINATION

Example usage: ICON_SOURCE="./gunky/designer/icons/" ICON_DESTINATION="./cool/developer/icons" node svgood.js

Future

Planning to add

  • Naming format changes, from camel case to snake, trimming spaces.
  • More granular control over what you remove from the svg files

About

Mass editing svgs to remove gunk that designer facing software tends to add

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published