Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

zsvgr

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zsvgr

Zee™ SVG Resizer Powered by SVGO.

  • 0.0.1
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-68.42%
Maintainers
0
Weekly downloads
 
Created
Source

SVGR

SVGR - SVG Resizer Powered by SVGO

Svgr is an efficient npm package for resizing and optimizing SVG files using the powerful SVGO (SVG Optimizer). It offers a straightforward solution to adjust SVG dimensions while maintaining high quality and optimizing file size.

Features

  • Resize SVGs: Easily resize SVG files to custom dimensions or scale them based on your needs.
  • Optimize with SVGO: Utilizes SVGO to minimize file size and improve performance.
  • Flexible Configuration: Customize resizing with various options for scaling factors and precision.
  • Command-Line Interface: Run resizing operations directly from the command line.

Installation

To install svgr, use npm:

npm install svgr

API Usage

svgr The primary entry point for the package. It is located in lib/svgr.js and can be used as import.

import svgr from 'svgr'

const result = svgr('svg-string', options)

// Options include SVGO's configuration settings with an additional 'customSize' parameter for the scale factor (defaults to 16).

Configuration

You can customize the resizing behavior by passing options directly through the command line or programmatically in your code.

Dependencies

svgo - A powerful SVG optimizer used for optimizing SVG files.

Author

MasterZeeno zeenoliev@gmail.com

License

MIT License. See the LICENSE file for details.

Contributing

Contributions are welcome! Please open an issue or submit a pull request to contribute to the project.

Changelog

For updates and changes, please refer to the CHANGELOG.

FAQs

Package last updated on 11 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc