Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

svgstore-cli

svgstore42.3kMIT2.0.1

Combine all your SVGs into one using <symbol>

svg, svgstore

readme

svgstore-cli

A command-line tool for combining SVG files into a single sprite sheet using <symbol> tags.

Installation

npm install -g svgstore-cli

Usage

svgstore [-o OUTFILE] [-p PREFIX] [--inline] INPUT ...
  • Multiple input files can be specified
  • Input files can be globs (e.g., **/*.svg)
  • Output to stdout by default
  • Can direct output to a file with the -o outfile flag
  • Can prefix the symbol names using the -p prefix flag
  • Supports --inline to avoid generating XML doctype

Licensed under MIT

changelog

v1.3.1

  • Set --inline as boolean flag
  • Add default values to cli args

v1.3.0

  • Updated to svgstore 2.0.2
  • Support --inline when outputting to a file

v1.2.1

  • Fix regression with prefix defaulting to "undefined"

v1.2.0

  • Moved argument parsing to use yargs-parser
  • Added --inline option to stop generating XML preamble

v1.1.0

  • Add -p flag for prefixing symbols

v1.0.0

  • Initial release