KO
|
EN
gitlite — search
Search
#javascript
#python
#css
#html
#typescript
#linux
#machine-learning
#tailwindcss
#chatgpt
#go
#git
#flask
svg2vd
★ 49
Open GitHub ↗
SVG to VectorDrawable command line tool
Download README (.md)
Explore Similar Repositories
presto-connectors
:
facebook presto connectors
eth-alarm-clock-dapp
:
Chronos - Ethereum Alarm Clock DApp
sralloc
:
Memory allocators
MyMangaDex
:
Sync automatically what you read on MangaDex.org with your MyAnimelist.net manga list.
promptly
:
Simple, opinionated prompting library
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
svg2vd
?
Download (.md)
# svg2vd [![Build status][travis-badge]][travis-badge-url] [![Coverage status][coveralls-badge]][coveralls-badge-url] `svg2vd` is an SVG to `VectorDrawable` command line tool. ## Installation You can install `svg2vd` using [npm][npm] w/ the following command: ```sh npm install -g svg2vd ``` ## Usage ```text Usage: svg2vd [options] [file] Options: -V, --version output the version number -s, --string <string> input SVG string -i, --input <file> input file/directory, or "-" for STDIN -o, --output <file> output file/directory (an XML file w/ the same name as the input file by default), or "-" for STDOUT -d, --dir <dir> convert all *.svg files in a directory -q, --quiet only output error messages -h, --help output usage information ``` ### Examples ```sh # Convert an SVG to VectorDrawable. svg2vd filename.svg # Convert all files ending with '.svg' to VectorDrawable. svg2vd *.svg # Convert an SVG to VectorDrawable and write the output to a new file. svg2vd filename.svg -o vector.xml # Convert an SVG to VectorDrawable using standard input and standard output. cat filename.svg | svg2vd -i - -o - > vector.xml # Convert all SVG files in a directory. svg2vd -d path/to/directory # Convert all SVG files in a directory and write them to a new directory. svg2vd -d path/to/input/directory -o path/to/output/directory # Convert all files ending with '.svg' and write them to a new directory. svg2vd *.svg -o path/to/output/directory # Pass a string as input and write the output to a new file. svg2vd -s '<svg>...</svg>' -o vector.xml ``` ## Build instructions If you want to contribute, first be sure to install the latest version of [`Node.js`](https://nodejs.org/) and [`npm`](https://www.npmjs.com/). If you're not sure what IDE to use, I highly recommend checking out [vscode][vscode]. Then clone this repository and in the root directory, run: ```sh npm install ``` To build the tool, run: ```sh npm run build ``` To test the tool, run: ```sh npm run test ``` [travis-badge]: https://travis-ci.org/alexjlockwood/svg2vd.svg?branch=master [travis-badge-url]: https://travis-ci.org/alexjlockwood/svg2vd [coveralls-badge]: https://coveralls.io/repos/github/alexjlockwood/svg2vd/badge.svg?branch=master [coveralls-badge-url]: https://coveralls.io/github/alexjlockwood/svg2vd?branch=master [npm-badge]: https://badge.fury.io/js/svg2vd.svg [npm-badge-url]: https://www.npmjs.com/package/svg2vd [vscode]: https://code.visualstudio.com/ [npm]: https://www.npmjs.com/get-npm