Creates a spritesheet from a directory of svgs. Can return the results directly or write to a spritesheet svg file. Node based and powered by svg2sprite.
npm install --save svgdir2sprite
const svgdir2sprite = require('svgdir2sprite');
svgdir2sprite('./src/svgs') // Async Promise
.then((svgContent) => console.log(svgContent));
const svgdir2sprite = require('svgdir2sprite');
svgdir2sprite('./src/svgs', './build/spritesheet.svg');
npm install -g svgdir2sprite
svgdir2sprite ./src/svgs
svgdir2sprite ./src/svgs ./build/spritesheet.svg