Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

figma-portal

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

figma-portal

Simple way to export figma components

  • 1.0.2
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Package logo

Build Status npm Standard Shared Config

Simple way to export a Figma components by name:ok_hand:

figma-portal is your choice:

  • If you use and strictly adhere to the naming policy in component library
  • Explaining to the designer where to get the nodeId, teamId or fileKey is too difficult

Install

npm install figma-portal --save-dev

Usage

figma-portal extract -d DEFAULT_OUTPUT_DIR -p PROJECT_NAME -c .figma.yml

Environment variables

  • FIGMA_TOKEN - Personal or OAuth token
  • FIGMA_TEAM_ID - Id of the team to list projects from

Configuration

Create a config file - .figma.yml, and add a new description for the exported components:

# Unique name of the component within the project
- name: GitHub / Figma portal / Logo
  # Output directory if different from default
  outputDir: media
  # Output file name, if necessary (by default uses the name of the component)
  fileName: banner
  # A string enum for the image output format, can be jpg, png, svg, or pdf
  format: svg
  # A number between 0.01 and 4, the image scaling factor
  scale: 1

API

Read the API documentation for more information.

Keywords

FAQs

Package last updated on 20 Apr 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc