figma-to-svgson

0.0.2 • Public • Published

figma-to-svgson

Generate JSON from Figma components.

Install

yarn add figma-to-svgson --dev

npm install figma-to-svgson --save-dev

Setup

  1. Generate a personal access token for the Figma API
  2. Create a .env file with your access token
    • FIGMA_TOKEN=<personal-access-token>
    • Alternatively add an environment variable for FIGMA_TOKEN in your npm script

Usage

figma-to-svgson <figma-file-id>

Options

    -n, --name       name of the generated JSON file
    -d, --out-dir    output directory (defaults to current working directory)

Thanks

This project is built on the shoulders of giants and wouldn't be possible without an amazing community. Huge thanks to the following people:

Readme

Keywords

none

Package Sidebar

Install

npm i figma-to-svgson

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

27.1 kB

Total Files

5

Last publish

Collaborators

  • souporserious