Socket
Book a DemoInstallSign in
Socket

@primer/figma-library-docgen

Package Overview
Dependencies
Maintainers
0
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@primer/figma-library-docgen

A tool to extract information from Figma libraries

latest
Source
npmnpm
Version
0.8.0
Version published
Weekly downloads
9
-35.71%
Maintainers
0
Weekly downloads
 
Created
Source

Figma Docgen

Figma Docgen is a tool for extracting component metadata from Figma libraries. This tool is useful for documenting and analyzing Figma libraries.

Installation

To use Figma Docgen, you need to have npm installed. Then run the following command to install Figma Docgen:

npm i @primer/figma-library-docgen

Usage

docgen {{FIGMA_LIBRARY_ID}} --figmaToken {{PERSONAL_ACCESS_TOKEN}}

Figma library id

To use Figma Docgen, you need to pass a Figma library id. You can find the library id by going to the Figma library and copying the id from the URL.

Personal access token

You'll need a Figma personal access token.

Options

  --help               Show help                                       
  --version            Show version number
  --output             File path to output the generated JSON to        
  --figmaToken         Figma API personal access token                
  --downloadImages     Download component image thumbnails to disk
  --downloadImagesDir  Directory path for downloaded component images
  --showWarnings       Log warnings for missing component thumbnails

FAQs

Package last updated on 30 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts