npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@ponyui/assets-export-cli

v1.0.0

Published

CLI for exporting assets from Figma. Works together with Figma Plugin 'PonyUI Assets Export'

Downloads

12

Readme

CLI for PonyUI Assets Export

PonyUI Assets Export helps developers to export assets from Figma to local dev workspace! FAST and FREE!

✨ Save your time - Configure what should be exported inside Figma with our Figma plugin and export all assets with a single command.

📤 Simplified asset export - No more repetitive steps for each file like save file to disk, rename and copy to source folder.

⚛️ Automated React icons - Generate React icon classes automatically, no more copy-pasting code to/from SVGR.

💻 Directly in your Local Workspace - our CLI tool will get all configured assets from your Figma file and save them in your source folder.

Functionality

  • You can export to png, jpg or svg files
  • You can ask PonyUI Assets Export to export png and jpg assets with any scale ratio
  • If you used SVGR to create React icon components from SVG files, PonyUI Assets Export will now do it for you.
  • You can export any Figma node, doesn't matter what's inside. So you can compose different elements and export it as a single asset.
  • Eslint and prettier supported for React icon components
  • PonyUI Assets Export will remember exported nodes, so you always know if a particular node is already exported in your source code and where to find it.
  • Inside the developer workspace you can configure different default folders for different types of assets.
  • And you can specify a custom folder for any special asset if you need it.
  • You can import all configured assets at once or a single asset by its id.

Setup

  1. Get the CLI with
npm install --save-dev @ponyui/assets-export-cli
  1. Run ponyui-assets init or just shortcut pa init command and answer the questions:
npx pa init

If you don't know how to get Figma File Id or Figma Access Token, please watch these two videos: https://youtu.be/g-i_erruGGc & https://youtu.be/O0fc89JVXII

Usage

Inside your Figma project

  1. Open PonyUI Assets Export Plugin inside your Figma file.
  2. Select a node you want to export in Figma and it appears in PonyUI Assets Export under the Node tab.
  3. Under "Export as" combobox select any of png, jpg, svg or react-icon-component.
  4. [Optional] It will fill File Name or Class Name text input automatically based on node's name, if you don't like the name, correct it.
  5. [Optional] If you don't want it to be in a default path, please specify any relative path in your local workspace you want it to appear.
  6. [Optional] For png & jpg assets if you want different scale than 2, set it.
  7. Repeat steps 2-6 for each node you want to export.
  8. Once done, open the "Publish" tab inside the Plugin and review changes you did.
  9. Click "Save for Export" button and go to your local workspace.

Import assets into your dev workspace

npx pa import

What's PonyUI

PonyUI is a toolchain aimed to automate the coding of your UI. It's going to be a small workhorse that converts Design to Code and vice versa to make Design File is the real "source of thruth" for project's UI. Now we focus on the MVP tool to convert Figma to React & React Native.

We want to help software dev teams iterate faster and cheaper.

If it resonates with you, let's be in touch in our newsletter at ponyui.com and follow our social media:

👉 Twitter
👉 YouTube
👉 LinkedIn