@mapbox/spritezero-cli

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

Stats

StarsIssuesVersionUpdatedCreatedSize
@mapbox/spritezero-cli
125102.1.04 years ago5 years agoMinified + gzip package size for @mapbox/spritezero-cli in KB

Readme

npm version build status

spritezero-cli

A command-line interface to spritezero.

Installation

npm install -g @mapbox/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.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.