
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@figma-export/cli
Advanced tools
Command line for @figma-export.
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/cli
Note: If you do not have a
package.json, create one before installing or runnpm init -yto automatically create ones.
export FIGMA_TOKEN=<personalAccessToken>
npx figma-export COMMAND
Note: These instructions use the
npxcommand to run the locally installed executables. You can drop it inside of an npm run script or you may instead execute with the relative path instead../node_modules/.bin/figma-export
helpnpx figma-export --help
use-configThis command is well-explained into the project README. Look at advanced section.
componentsExports components from a Figma file
npx figma-export components FILEID
# help
npx figma-export components --help
--transformer-Toption
npx figma-export components FILEID -T TRANSFORMER
A transform function receives an SVG and turns it into something new.
You can create you own:
// with promise
export default options => {
return (svg) => new Promise((resolve, reject) => {
resolve(svg);
});
}
// with async/await
export default options => {
return async (svg) => {
return svg;
};
}
or install an official transformer:
| Package | Version |
|---|---|
@figma-export/transform-svg-with-svgo |
--outputter-Ooption
npx figma-export components FILEID -O OUTPUTTER
An output function receives a list of pages, in which each page contains components.
You can create you own:
export default options => {
return async pages => {
console.clear();
console.log(JSON.stringify(pages));
};
}
or install an official outputter:
stylesExports styles from a Figma file
npx figma-export styles FILEID
# help
npx figma-export styles --help
--outputter-Ooption
npx figma-export styles FILEID -O OUTPUTTER
An output function receives a list of styles.
You can create you own:
export default options => {
return async styles => {
console.clear();
console.log(JSON.stringify(styles));
};
}
or install an official outputter:
| Package | Version |
|---|---|
@figma-export/output-styles-as-css | |
@figma-export/output-styles-as-style-dictionary | |
@figma-export/output-styles-as-sass | |
@figma-export/output-styles-as-less |
FAQs
Command line for @figma-export
The npm package @figma-export/cli receives a total of 34,735 weekly downloads. As such, @figma-export/cli popularity was classified as popular.
We found that @figma-export/cli 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.