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
- Host: GitHub
- URL: https://github.com/monospaced/porg
- Owner: monospaced
- Created: 2018-01-11T12:04:54.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-05T16:44:11.000Z (over 8 years ago)
- Last Synced: 2025-04-18T12:18:09.447Z (about 1 year ago)
- Topics: cli, jsx, nodejs, react, svg
- Language: JavaScript
- Homepage:
- Size: 57.6 KB
- Stars: 5
- Watchers: 0
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Porg
Convert SVG to JSX

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
…
```