Skip to content

Compress the svg in folder svg to compressedSvg.

License

Notifications You must be signed in to change notification settings

dmetzler1988-org/svgCompressor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

SVG Compressor

This little script compress the svg files and remove all unnecessary code elements from files.

Installation and usage

  1. Switch to folder after clone repository
  2. Execute command npm install
  3. Copy files in folder svg
  4. Execute command npm run comp
  5. Check the compressed files in folder compressedSvg

Commands available

  • npm run comp: delete the destination folder and compress the file on normal way
  • npm run compBase64: delete the destination folder and compress the file as base64
  • npm run compUriEncoded: delete the destination folder and compress the file as URI encoded
  • npm run compUriUnencoded: delete the destination folder and compress the file as URI unencoded
  • npm run clean: clean up the folder svg and compressedSvg for a clean start

Tools which are used

About

Compress the svg in folder svg to compressedSvg.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published