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

convert-figma-svgs-for-react

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

convert-figma-svgs-for-react

A small script for a very specific use case.

  • 1.0.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10
increased by150%
Maintainers
1
Weekly downloads
 
Created
Source

Overview

A stopgap script for a very specific use case - having exported .svg files from Figma, I want to make them available as .js modules that just export the <svg> as a String, so that I can use it inline in create-react-app with dangerouslySetInnerHTML.

Searches the directory supplied as the first command-line argument for .svg files to convert to .js files, which are named identically and placed in the same directory. Not a recursive search, only parses .svg files right in the specified directory.

Usage

convert-figma-svgs-for-react ./path/to/svg/directory

FAQs

Package last updated on 04 Nov 2017

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