
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@figma-export/output-components-as-svg
Advanced tools
Outputter for @figma-export that exports components as svg
Outputter for @figma-export that exports components as svg.
With this outputter you can export all components as svg into the specified output folder.
This is a sample of the output from this Figma file:
$ tree output/
# output
# βββ icons
# β βββ figma-arrow.svg
# β βββ figma-export.svg
# β βββ figma-logo.svg
# βββ unit-test
# βββ figma
# β βββ logo
# β β βββ main (bright).svg
# β β βββ main.svg
# β βββ logo.svg
# βββ figma default logo.svg
Tip: A component named
icon/eyewill be exported aseye.svginside theiconfolder.
You can easily add this outputter to your .figmaexportrc.js:
module.exports = {
commands: [
['components', {
fileId: 'fzYhvQpqwhZDUImRz431Qo',
onlyFromPages: ['icons', 'unit-test'],
outputters: [
require('@figma-export/output-components-as-svg')({
output: './output'
})
]
}],
]
}
output is mandatory.
getDirname and getBasename are optional.
const path = require('path');
...
require('@figma-export/output-components-as-svg')({
output: './output',
getDirname: (options) => `${options.pageName}${path.sep}${options.dirname}`,
getBasename: (options) => `${options.basename}.svg`,
})
defaults may change, please refer to
./src/index.ts
Using npm:
npm install --save-dev @figma-export/output-components-as-svg
or using yarn:
yarn add @figma-export/output-components-as-svg --dev
FAQs
Outputter for @figma-export that exports components as svg
The npm package @figma-export/output-components-as-svg receives a total of 6,938 weekly downloads. As such, @figma-export/output-components-as-svg popularity was classified as popular.
We found that @figma-export/output-components-as-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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authoritiesβ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socketβs new workflow scanning support.