a command-line interface for spritezero generation of raster sprites from SVG input

Usage no npm install needed!

<script type="module">
  import elasticSpritezeroCli from 'https://cdn.skypack.dev/@elastic/spritezero-cli';



A command-line interface to elastic/spritezero.

WTF? (Why The Fork?)

See elastic/spritezero


npm install -g @elastic/spritezero-cli


spritezero [output filename] [input directory]

  --retina      shorthand for --ratio=2
  --ratio=[n]   pixel ratio
  --unique      map identical images to multiple names
  --sdf         generate sdf sprites

Spritezero reads an input directory containing SVG files and generates a JSON layout file and PNG spritesheet.