package
> CLI interface for [svg2sprite](https://github.com/mrmlnc/svg2sprite).
npm install svg2sprite-cliGitHub-flavored package documentation.
Across all versions, last 30 days.
32,431 in 30 days
Runtime metadata.
Tagged topics.
CLI interface for svg2sprite.
$ npm i -g svg2sprite-cliUsage
$ svg2sprite <source-directory> <dist-file> [options]
Common options
--ignore, -d glob-patterns for files that will not be added to the sprite.
--inline, -i If you want to embed the sprite into your HTML source, you will want to set this to true in order to prevent the creation of SVG namespace declarations and to set some other attributes for effectively hiding the library sprite.
--iconPrefix, -p The name prefix for each icon.
--iconSuffix, -s The name suffix for each icon.
Clean options
--stripEmptyTags Removes empty tags such as "defs" or "g".
--stripTags Removes tags, that are listed in this list.
--stripAttrs Removes attributes, that are listed in this list.
--stripExtraAttrs Removes "Sketch" and "xmlns:*" attributes.
--stripStyles Removes "style" attributes from SVG definitions, or a list of the properties that will be removed from style tag and atrribute.
Examples
$ svg2sprite images/svg out/sprite.svg --ignore rainbow.svg --iconPrefix=prefixSee the Releases section of our GitHub project for changelogs for each release version.
This software is released under the terms of the MIT license.
Estimated unpacked size across 11 packages.
1.6 MB
Includes dependencies.
6 direct · 4 outdated
^3.7.0
14.1.0
^2.3.0
6.1.0
^1.1.3
6.0.1
^0.5.1
3.0.1
^2.0.0
2.0.1
^2.1.0
2.2.3