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.4
  • npm
  • Socket score

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

ZSVGR

ZSVGR - Zee™ SVG Resizer Powered by SVGO

Zee™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 zsvgr, use npm:

npm install zsvgr

API Usage

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

import zsvgr from 'zsvgr'

const result = zsvgr('svgString', 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.

Keywords

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