https://github.com/mapbox/spritezero-cli
A command-line interface to spritezero.
https://github.com/mapbox/spritezero-cli
Last synced: about 2 months ago
JSON representation
A command-line interface to spritezero.
- Host: GitHub
- URL: https://github.com/mapbox/spritezero-cli
- Owner: mapbox
- License: other
- Created: 2015-09-02T15:10:18.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-04-26T11:45:42.000Z (almost 2 years ago)
- Last Synced: 2025-10-24T05:47:58.334Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 778 KB
- Stars: 177
- Watchers: 127
- Forks: 70
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[](https://badge.fury.io/js/%40mapbox%2Fspritezero-cli)
[](http://travis-ci.org/mapbox/spritezero-cli)
# spritezero-cli
A command-line interface to [spritezero](https://github.com/mapbox/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.