3.1.0 • Published 2 years ago

calm-svg-sprite v3.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years 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

2 years ago

3.0.9

2 years ago

3.0.8

2 years ago

3.0.7

2 years ago

3.0.6

2 years ago

3.0.5

2 years ago

3.0.4

2 years ago

3.0.2

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

2.2.5

2 years ago

2.2.3

2 years ago

2.2.2

2 years ago

2.2.0

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago