/Figma-JSON-Parser

Draft parsing JSON from Figma File

Primary LanguageJavaScript

Figma JSON Parser

This program is intend to convert figma frame-by-frame to JSON file

Preview

How To Install?

  1. Clone this repo with git clone command
git clone https://github.com/telkom-design/Figma-JSON-Parser
  1. Change to work directory
cd Figma-JSON-Parser
  1. Install with npm
npm install
  1. Create .env file at root work dir
touch .env
  1. Configure .env with this environment
FIGMA_TOKEN=321227-f302de1c-9339-49b3-901b-561d48ceb228
FIGMA_ID=Hzqg2Mi3qcRbYVa5MsYy27
FIGMA_API=https://api.figma.com
OUTPUT_MAIN=output/main.json
  1. Start your program / Fetch newest change on figma
npm run start

What's Next?

You can saw output file at output directory

cd output