SVGsprite.createSprite()

Create an SVGs sprite from multiple SVG source files.

Usage

Hover over inputs/exits for more info.

var SVGsprite = require('machinepack-svg-sprite');


// Create an SVGs sprite from multiple SVG source files.

SVGsprite.createSprite({

svgs: [],

}).execSync();

Inputs

svgs required

An array of SVGs to put into the sprite.

Exits

error

An unexpected error occurred.

success

OK.