🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@empathyco/x-svg-converter

Package Overview
Dependencies
Maintainers
5
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@empathyco/x-svg-converter

A project which allows the user to convert SVGs into Vue components formatted to be used with the x-tailwindcss design system.

latest
Source
npmnpm
Version
1.0.3-alpha.8
Version published
Weekly downloads
110
1733.33%
Maintainers
5
Weekly downloads
 
Created
Source

Convert SVGs into Vue components to use with the X Design System

This project generates Vue components from SVGs in a folder, with the format required for the XDS

How to use it

Params

It receives two parameters, the first one should be the path to the folder containing the SVGs. The second one indicates if the source SVG files should persist at the end of the process (--keep-svgs). By default, the SVGs are deleted.

  • sourcePath: path of the folder with the SVGs.
  • keepSVGs: indicates if the SVGs are preserved at the end. false by default.

Run it as script

Run the following command to generate a Vue component from each SVG in the source folder:

ts-node ./src/svg-to-vue.ts ./yourSourceFolder

If you want to keep the source SVGs, add the --keep-svgs param:

ts-node ./src/svg-to-vue.ts ./yourSourceFolder --keep-svgs

Keywords

svg

FAQs

Package last updated on 19 Nov 2025

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