spritezero
Small opinionated sprites.
Why is this different than sprite generation libraries like spritesmith? spritezero was initially created to power a sprite API, and thus is geared towards performance, as well as an ability to work with image data in buffers rather than on disk. Also, since version 2.0, spritezero generates sprites based on SVG graphics alone, therefore making it possible to support @2x and higher-dpi sprites from the same source.
Usage
var spritezero = ;var fs = ;var glob = ;var path = ; 1 2 4;
Documentation
Complete API documentation is here: http://mapbox.github.io/spritezero/
Installation
Requires nodejs v4.0.0 or greater.
$ npm install spritezero
Executable
spritezero-cli is an executable for bundling and creating your own sprites from a folder of svg's:
$ npm install -g spritezero-cli$ spritezero --help Usage:spritezero [output filename] [input directory] --retina shorthand