Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@proxy-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 -y
to automatically create ones.
export FIGMA_TOKEN=<personalAccessToken>
npx figma-export COMMAND
Note: These instructions use the
npx
command 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
help
npx figma-export help
use-config
This command is well-explained into the project README. Look at advanced section.
components
Exports components from a Figma file
npx figma-export components FILEID
# help
npx figma-export help components
--transformer
-T
option
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
module.exports = options => {
return (svg) => new Promise((resolve, reject) => {
resolve(svg);
});
}
// with async/await
module.exports = options => {
return async (svg) => {
return svg;
};
}
or install an official transformer:
Package | Version |
---|---|
@figma-export/transform-svg-with-svgo |
--outputter
-O
option
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:
module.exports = options => {
return async pages => {
console.clear();
console.log(JSON.stringify(pages));
};
}
or install an official outputter:
styles
Exports styles from a Figma file
npx figma-export styles FILEID
# help
npx figma-export help styles
--outputter
-O
option
npx figma-export styles FILEID -O OUTPUTTER
An output function receives a list of styles.
You can create you own:
module.exports = 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-sass | |
@figma-export/output-styles-as-less |
FAQs
Command line for @figma-export
The npm package @proxy-figma-export/cli receives a total of 7 weekly downloads. As such, @proxy-figma-export/cli popularity was classified as not popular.
We found that @proxy-figma-export/cli 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.