Civet997 / vector-drawable-svg

Convert Android VectorDrawable to SVG

Home Page:https://vd.floo.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation & Usage

Install

npm install vector-drawable-svg
const { transform } = require('vector-drawable-svg');

const svgContent = transform(vectorDrawbleContent, {
	pretty: true,
	override: {
		'@color/colorPrimary': '#00ff00',
		'@color/colorSecondary': '#00ff00',
		'?android:attr/textColorPrimary': 'white',
	});

Using on Bash

npm install -g vector-drawable-svg
vd2svg my-drawable.xml file.svg

About

Convert Android VectorDrawable to SVG

https://vd.floo.app/

License:MIT License


Languages

Language:JavaScript 100.0%