https://github.com/alex-page/figma-svg-cli
Export Figma frames as minified SVG files
https://github.com/alex-page/figma-svg-cli
Last synced: 3 months ago
JSON representation
Export Figma frames as minified SVG files
- Host: GitHub
- URL: https://github.com/alex-page/figma-svg-cli
- Owner: alex-page
- License: mit
- Created: 2020-09-19T17:28:10.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-12T16:10:38.000Z (over 3 years ago)
- Last Synced: 2025-01-17T00:28:25.285Z (5 months ago)
- Language: JavaScript
- Size: 68.4 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# figma-svg-cli
> Export Figma frames as minified SVG files
## Install
Ensure you have Node.js version 8+ installed. Then run the following:
```
$ npm install --global figma-svg-cli
```## Usage
```
$ figma-svg --helpUsage
$ figma-svg --file PTAtA9Z --token 63214-7e15eOptions
--file, -f The file ID from Figma
--token, -t The Figma personal access token
--dist, -d The directory the svg files get saved to
--raw, -r Do not minify the SVG files with SVGOExamples
$ figma-svg --file PTAtA9Z --token 63214-7e15e
✔ Downloaded 370 files to ./dist
```## Related
[replace-in-files-cli](https://github.com/sindresorhus/replace-in-files-cli) - Replace matching strings and regexes in files