
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
figma-export-variables
Advanced tools
Command line for export variables
This script is designed to kickstart the browser, navigating through Figma's interface to extract variables. Its primary goal is to duplicate a file and retrieve the collection from the replica. Post-extraction, whether successful or not, the duplicated file undergoes deletion. A Figma login is imperative. In case it's the first login via Puppeteer, the script may launch the browser with a graphical user interface, streamlining the manual login process into Figma.
While you can install it globally on your machine, it's much better to install it locally project by project.
npm install --save-dev figma-export-variables
figma-export-variables --help
Note: If you do not have a
package.json
, create one before installing or runnpm init -y
to automatically create ones.
npx figma-export-variables COMMAND
interactive
By default, the browser runs without a graphical user interface (GUI). In case of any issues, you have the option to run it with a GUI.
npx figma-export-variables --interactive
use-config
You must create a configuration file and use a single command to rule them all :ring:
Let's create the file .figmaexportvariablestrc.js
and paste the following:
module.exports = {
commands: [
['variables', {
fileId: 'SOME_UNIQ_ID',
outputters: [output]
}]
]
};
:information_source: Take a look at .figmaexportvariablestrc.js.example for more details.
now you can update the package.json
.
{
"scripts": {
+ "figma-variables:export": "figma-export-variables use-config"
}
}
If needed you can also provide a different configuration file.
{
"scripts": {
+ "figma-variables:export": "figma-export-variables use-config .figmaexportrc.production.js"
}
}
FAQs
Export figma variables with puppeteer
The npm package figma-export-variables receives a total of 5 weekly downloads. As such, figma-export-variables popularity was classified as not popular.
We found that figma-export-variables demonstrated a not healthy version release cadence and project activity because the last version was released 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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.