Sha256: ae2d1939f2b0fe25b40e6a80508b86c7bdf67573cf8f404b28aaae2341616771
Contents?: true
Size: 644 Bytes
Versions: 3
Compression:
Stored size: 644 Bytes
Contents
# SvgoWrapper This is a simple wrapper for the `svgo` command line tool. ## Installation Add this line to your application's Gemfile: ```ruby gem "svgo_wrapper" ``` And then execute: $ bundle Or install it yourself as: $ gem install svgo_wrapper ## Usage ```ruby require "svgo_wrapper" # Create a wrapper with enabled and disabled plugins. # All attributes are optional. wrapper = SvgoWrapper.new enabled: :removeTitle, disabled: [:convertColors, :removeMetadata], timeout: 10 # seconds # Parse image data wrapper.optimize_images_data " <svg> </svg> " #=> "<svg/>\n" ```
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
svgo_wrapper-0.0.4 | README.md |
svgo_wrapper-0.0.3 | README.md |
svgo_wrapper-0.0.1 | README.md |