Node js tool to generate sprites of both standard images and svg images
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
.npmignore
LICENSE-MIT
README.md
grunt.js
package.json

README.md

svgsprites

Node js tool to generate sprites of both standard images and svg images. It is a modified version of SpriteGen with code from svg2png which first convert all svg-images to PNG before creating a sprite.png and sprite.css of all images.

Requirements

Please install Phantomjs so that their shell command is available in your path. You can install Phantomjs with HomeBrew by:

brew update && brew install phantomjs

Getting Started

Install the module with: npm install -g svgsprites and it should be available in your path.

cd image-folder
svgsprites --dir .

Documentation

(Coming soon)

Examples

(Coming soon)

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.

Release History

(Nothing yet)

License

Copyright (c) 2012 Gerhard Sletten
Licensed under the MIT license.