Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
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
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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.