package
svg2sprite wrapper for easy integration into the development process.
npm install yellfy-svg-spriteGitHub-flavored package documentation.
Across all versions, last 30 days.
22 in 30 days
Runtime metadata.
Tagged topics.
Latest published Nov 23, 2016
svg2spritewrapper for easy integration into the development process.
$ npm i -D yellfy-svg-spriteconst svgSprite = require('yellfy-svg-sprite');
svgSprite.makeSprite('dir/containing/svg/files').then((result) => {
console.log(result.sprite);
// <?xml version="1.0"...
return result.write('filepath/to/save/sprite.svg');
});.makeSprite(sourceDir, ignore, [options]) → resultignore
Array['!*.svg']Array glob-patterns for files that will not be added to the sprite.
options
sprite
StringSprite data.
write(filepath)
A feature that allows you to write the resulting sprite to disk.
See the Releases section of our GitHub project for changelogs for each release version.
This software is released under the terms of the MIT license.
Estimated unpacked size across 8 packages.
1.2 MB
Includes dependencies.
3 direct · 1 outdated