0.0.16 • Published 2 years ago

@shanzhai/minify-svg-step v0.0.16

Weekly downloads
1
License
MIT
Repository
github
Last release
2 years ago

@shanzhai/minify-svg-step Continuous Integration License FOSSA Status Renovate enabled npm npm type definitions

A Shanzhai step which minifies a SVG file.

Usage

Within a trigger's event handler, return an instance of MinifySvgStep similar to the following:

new MinifySvgStep(
  `A description of the operation being performed`,
  new AnInputOfUnminifiedSvg(),
  new AnOutputOfMinifiedSvg()
);

Configuration Notes

The configuration used is highly aggressive. It should be reasonable for static SVGs.

  • Coordinates are rounded to the nearest pixels.
  • Colors are reduced from 24 to 12 bits.
  • Ids, classes, etc. are all removed.
  • Invisible elements are removed.
  • Grouping elements which do not alter appearance are flattened.

Dependencies

This package has the following runtime dependencies:

NameVersion
svgo2.8.0

Peer Dependencies

This package has no runtime peer dependencies (it does not expect any other packages to be installed alongside itself).

License

FOSSA Status

0.0.12

2 years ago

0.0.13

2 years ago

0.0.14

2 years ago

0.0.15

2 years ago

0.0.16

2 years ago

0.0.10

2 years ago

0.0.11

2 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

4 years ago

0.0.1

4 years ago

0.0.0

4 years ago