New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

figma_icon_lib

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

figma_icon_lib

======1단계=======

latest
npmnpm
Version
0.0.6
Version published
Maintainers
1
Created
Source

피그마 아이콘 라이브러리 만들기

======1단계=======

  • 가져올 파일키와 부모 노드 id를 가지고 노드 데이터를 가져온다.
  • 노드 데이터에서 해당 노드의 자식 노드 id들을 추출한다.
  • 자식노드 id들을 가지고 image url api를 호출해서 url들을 가져온다.
  • url과 자식노드 dict를 통해서, svg 코드를 가져온다음에 로컬에 해당 노드 이름으로 svg 파일을 저장한다.

======2단계=======

  • svgR을 통해서 svg를 리액트 코드로 변환해서 로컬에 저장했다.

======3단계=======

  • npm 라이브러리를 만들어서 배포한다.

======4단계=======

  • github action을 통해서 스크립트를 실행할 수 있도록 한다.

피그마에서 아이콘 불러오기.

1.1. npx tsx ./src/main.ts

  • node, npm

  • tsx (npm i)

    1.2. tsup

FAQs

Package last updated on 31 Oct 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