3.1.0 • Published 8 months ago

calm-svg-sprite v3.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
8 months ago

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: ./

3.1.0

8 months ago

3.0.9

8 months ago

3.0.8

8 months ago

3.0.7

8 months ago

3.0.6

9 months ago

3.0.5

9 months ago

3.0.4

9 months ago

3.0.2

9 months ago

3.0.1

9 months ago

3.0.0

9 months ago

2.2.5

9 months ago

2.2.3

9 months ago

2.2.2

9 months ago

2.2.0

9 months ago

2.0.1

9 months ago

2.0.0

9 months ago

1.1.1

9 months ago

1.1.0

9 months ago

1.0.7

9 months ago

1.0.6

9 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago