svg-unique

0.1.1 • Public • Published

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

Argument Use Default value
--input Custom input directory .
--output Custom output directory --input

Readme

Keywords

Package Sidebar

Install

npm i svg-unique

Weekly Downloads

2

Version

0.1.1

License

ISC

Unpacked Size

5.09 kB

Total Files

3

Last publish

Collaborators

  • jpfiorilla