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

@figma-export/output-components-as-es6

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@figma-export/output-components-as-es6

Outputter for @figma-export that exports components in javascript file

  • 0.0.1-alpha.12
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
61
decreased by-55.47%
Maintainers
1
Weekly downloads
 
Created
Source

@figma-export/output-components-as-es6

Outputter for @figma-export that exports components in javascript file.

With this outputter you can export all components as variables inside a .js file called with the page name.

This is a sample of the output:

$ tree output/
# output/
# ├── icons.js
# └── monochrome.js

For each file you will have a list of export.

// icons.js

export const figmaExport = `<svg width="60" height="60" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg"> ... </svg>`;
export const figmaLogo = `<svg width="40" height="60" viewBox="0 0 40 60" fill="none" xmlns="http://www.w3.org/2000/svg"> ... </svg>`;

Install

Using npm:

npm install --save-dev @figma-export/output-components-as-es6

or using yarn:

yarn add @figma-export/output-components-as-es6 --dev

FAQs

Package last updated on 10 Nov 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