node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »



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.


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 .


(Coming soon)


(Coming soon)


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)


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