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

@astrouxds/astrouxds-figma-assets

Package Overview
Dependencies
Maintainers
4
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@astrouxds/astrouxds-figma-assets

A CLI to automatically fetch image assets from Figma for AstroUXDS.com

  • 0.0.5
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
4
Weekly downloads
 
Created
Source

AstroUXDS Figma Asset Downloader

A highly specific tool to pull website images into AstroUXDS.

It assumes the following layer setup in the Figma file:

  • Parent categories are denoted by "--PARENT NAME--" layer names.
  • Layers underneath and between these Parent categories are Child pages.
  • Any layer or page name starting with "_" is ignored.
  • Layer names must be unique. If duplicate layers are encountered, the first layer found will be exported and the tool will chirp at you.

Installation

npm i @astrouxds/astro-figma-assets --save-dev

Add a new npm script in package.json

"fetch:images": "node node_modules/@astrouxds/astrouxds-figma-assets/index.js"

Create a new .env or add the following vars:

FIGMA_ASSET_FILE_ID - the ID of the Figma file FIGMA_ASSET_ACCESS_TOKEN - your personal Figma access token FIGMA_ASSET_OUTPUT_DIR - where you want the images to download to

FAQs

Package last updated on 07 Jun 2023

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