0.1.1 • Published 6 years ago

svg-unique v0.1.1

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

Edit your SVGs to have unique markup

Programs like Sketch output their .svg files with the same ids as each other by default, which causes the svgs to override each other's markup when multiple are displayed on a webpage.

This script solves this issue by renaming the id and class attributes of all SVG elements to be unique.

Install:

$ npm i -g svg-unique

Use:

$ svgu

or

$ svgu --input=./customInputDir --output=./customOutputDir

ArgumentUseDefault value
--inputCustom input directory.
--outputCustom output directory--input
0.1.1

6 years ago

0.1.0

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago