svg-tools
Modify svg files and create sprite sheets directly from the command line.
Installation
npm i -g svg-tools
Use svg-tools
# print parsed SVG svg print ./path/to/mySvg.svg# print parsed SVG as HTML svg print ./path/to/mySvg.svg H # create a sprite sheet from a folder of svg files svg sprite ./path/to/my/svg/folder C:/my/output/spite-sheet.svg
Use sprite-sheets
<!--Add your sprite sheet to the DOM--> <!-- ... --> <!--Reference your sprites with <use> tags-->
Contribute
Pull requests welcome!