New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mz-svg

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mz-svg

The TypeScript-based library for manipulating SVG in browser and Node.js.

  • 1.0.10
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
494
decreased by-13.94%
Maintainers
1
Weekly downloads
 
Created
Source

ミ☆ mzSVG ☆彡

GitHub package.json version NPM

TypeScript-based library for managing SVG in the browser and Node.js. The modular approach allows you to select only the required functions. It works well with all modern bundlers and Node.js and supports tree shaking 🌲.

Features 🚀

  • Works in browser and Node.js.
  • Based on TypeScript.
  • Save the SVG to the file system in Node.js, or download it as SVG, PNG, JPG, etc. in a browser environment.
  • Extensive Unit Testing.

Working with path data ('d' property)

  • Translate, rotate, and scale path.
  • Convert path to relative or absolute commands.
  • Find path bounding box.
  • Minify path data.
  • Beautify path data.
  • Path data validation.
  • Path data parser.

Create SVG elements in browser & Node.js

  • Primitive shapes like path, rectangle, circle, ellipse, polygon, polyline, etc.
  • Container objects like <g>, <defs>, <use>, etc.
  • SVG <pattern>, <clipPath>, <mask>, etc.
  • Rectangle path element.
  • Star shape, flower shape.

Animation

  • Create animation elements like <animate>, <animateMotion>, <animateTransform>, etc.

Documentation 🔖

Main

Create SVG

Shapes

Containers

Path Data

IO

Animation

Helpers

Other


Keywords

FAQs

Package last updated on 25 Apr 2023

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