
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
figma-export-svg
Advanced tools
This is a simple CLI tool to export SVGs from Figma. It uses the Figma API to fetch the SVGs and saves them to the local file system, then optionally optimizes them using SVGO.
This is a simple CLI tool to export SVGs from Figma. It uses the Figma API to fetch the SVGs and saves them to the local file system, then optionally optimizes them using SVGO.
npm install -g figma-export-svg
figma-export-svg -a <access-token> -f <file-id> -n <node-ids (comma-separated)> -o <output-dir>
-a, --access-token <access-token> Figma personal access token (https://www.figma.com/developers/api#access-tokens)
-c, --clear-output-dir Clear output directory before saving new SVGs
-o, --output-dir <output-dir> Output directory
-f, --file-id <file-id> Figma file ID, e.g., oQ5VCtq1r0KrPx3VpqMSX5
-n, --node-ids <node-ids> Figma node IDs (comma-separated), e.g., 5432:1234,1234:9876
--file-name-strategy <strategy> File name strategy: camel, pascal, pascalSnake, constant, kebab, snake, train. Default: kebab
--svgo-config <value> Path to SVGO config file (e.g., ./svgo.config.mjs)
-h, --help display help for command
# Figma API options (see: https://www.figma.com/developers/api#get-images-endpoint)
--scale <value> Scale factor for the exported SVGs. Between 0.01 and 4.
--outline-text Convert text to outlines if configured
--include-id Whether to include id attributes for all SVG elements
--include-node-id Whether to include node id attributes for all SVG elements
--simplify-strokes Simplify strokes in the exported SVGs
--contents-only Whether content that overlaps the node should be excluded from rendering
--absolute-bounds Whether to use absolute bounding box for exported SVGs
FAQs
This is a simple CLI tool to export SVGs from Figma. It uses the Figma API to fetch the SVGs and saves them to the local file system, then optionally optimizes them using SVGO.
We found that figma-export-svg demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.