@beyondtracks/spritezero-cli
v2.3.1
Published
a command-line interface for spritezero generation of raster sprites from SVG input
Downloads
106
Maintainers
Readme
spritezero-cli
A command-line interface to spritezero.
This is a fork of the original https://github.com/mapbox/spritezero-cli.
Installation
npm install -g @beyondtracks/spritezero-cli
or
yarn global add @beyondtracks/spritezero-cli
Usage
spritezero [output filename] [input directory]
--retina shorthand for --ratio=2
--ratio=[n] pixel ratio
--unique map identical images to multiple names
Spritezero reads an input directory containing SVG files and generates a JSON layout file and PNG spritesheet.