svg-sprite-data
An attempt to make the svg-sprite lib work on strings only which will allow everyone to create their own awesome libs on top of it.
The idea is to remove ALL file-system access and leave all that to the authors who create tools on top of this. So, this module only has a couple of methods, only accepts strings & only returns data - it never touches anything on the file-system.
Usage
var SpriteData = ;var fs = ; var config = common: "icon" dims: true layout: "diagonal" render: css: true ; // Create instancevar spriter = config; // Read a file however you likevar path = "./test/fixtures/fb.svg";var svg = fs; // Add the files CONTENTS only.spriter;