An open API service indexing awesome lists of open source software.

https://github.com/monospaced/porg

Convert SVG to JSX
https://github.com/monospaced/porg

cli jsx nodejs react svg

Last synced: about 1 year ago
JSON representation

Convert SVG to JSX

Awesome Lists containing this project

README

          

# Porg

Convert SVG to JSX

![porg.svg](porg.svg)

From `.svg`

```html

```

To `.js`

```js
import React from "react";

export default = (



);
```

## Usage

```
$ porg [options]

Options:

-d, --delete delete source file(s)
-r, --recursive process folders recursively
-V, --version output the version number
-h, --help output usage information
```

## Dependencies

git | node 8 | npm

yarn `brew install yarn --without-node`

## Installation

```
$ git clone git@github.com:monospaced/porg.git
$ cd porg
$ yarn && yarn link
```

## Examples

### File

```
$ porg ./test/test.svg

./test/test.js
```

### Directory

```
$ porg ./test

./test/test.js
./test/etc.js

```