Socket
Socket
Sign inDemoInstall

@figma-export/cli

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@figma-export/cli

Command line for @figma-export


Version published
Maintainers
1
Created
Source

@figma-export/cli

Command line for @figma-export.

Install

Using npm:

npm i -D @figma-export/cli

or using yarn:

yarn add @figma-export/cli --dev

Usage

export FIGMA_TOKEN=<personalAccessToken>

figma-export [COMMAND]

Commands

components

figma-export components [FILEID]
transformers

A transform function receives an SVG and turns it into something new.

You can create you own:

module.exports = options => {
    return (svg) => new Promise((resolve, reject) => {
        resolve(svg);
    });
}
module.exports = options => {
    return async (svg) => {
        return svg;
    };
}
npm install -g @figma-export/transform-svg-with-svgo

figma-export components RSzpKJcnb6uBRQ3rOfLIyUs5 -T @figma-export/transform-svg-with-svgo
  • @figma-export/transform-svg-with-svgo
outputters

An output function receives a list of pages, in which each page contains components.

You can create you own:

module.exports = options => {
    return async pages => {
        console.clear();
        console.log(JSON.stringify(pages));
    };
}

Usage:

npm install -g @figma-export/output-components-as-svg

figma-export components RSzpKJcnb6uBRQ3rOfLIyUs5 -O @figma-export/output-components-as-svg

Keywords

FAQs

Package last updated on 28 Oct 2019

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