0.1.1 • Published 9 years ago
spritey-svg v0.1.1
Spritey SVG
Simple SVG sprite generator. No fallbacks, no css; just pure SVG goodness. This makes symbol
like sprites out of svgs.
Usage
Spritey svg has a cli so you can install it globally and use it anywhere.
npm i spritey-svg -g
Then all you need to pass sprity is a glob path to your svg files.
spritey --files assets/icons/*.svg
Now you should see the data streaming out to your terminal. You can also output to a file.
spritey --files assets/icons/*.svg --output assets/icons.svg
This will output the sprite to the svg file.
Javascript API
Spritey SVG also has a Javascript API.
const spritey = require('spritey-svg');
sprity({
files: [...],
output: fs.createWriteStream('assets/icons.svg')
});
0.1.1
9 years ago