calm-svg-sprite

3.1.0 • Public • Published

CALM SVG SPRITE

Easily create optimized SVG sprites.

  • Removes all styles and unnecessary attributes, optimizes, and adds the 'fill' property with the value 'currentColor' for more convenient further use.
  • Creates a JavaScript file with an array containing the names of all icons, suitable for use in a UI kit.

Install

npm i -g calm-svg-sprite

Usage

calm-svg-sprite <source-files> <output-folder>

Example

calm-svg-sprite ./icons ./img
  • Will automatically create files calm-sprite.svg and calmIcons.js in the /img folder.

API

source-files

Default: ./

output-folder

Default: ./

Package Sidebar

Install

npm i calm-svg-sprite

Weekly Downloads

13

Version

3.1.0

License

ISC

Unpacked Size

8.95 kB

Total Files

8

Last publish

Collaborators

  • svaticalm