0.0.16 • Published 3 years ago

@shanzhai/minify-svg-step v0.0.16

Weekly downloads
1
License
MIT
Repository
github
Last release
3 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

3 years ago

0.0.13

3 years ago

0.0.14

3 years ago

0.0.15

3 years ago

0.0.16

3 years ago

0.0.10

3 years ago

0.0.11

3 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

5 years ago

0.0.1

5 years ago

0.0.0

5 years ago