
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@proxy-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/eye
will be exported aseye.svg
inside theicon
folder.
You can easily add this outputter to your .figmaexportrc.js
:
module.exports = {
commands: [
['components', {
fileId: 'fzYhvQpqwhZDUImRz431Qo',
onlyFromPages: ['icons', 'unit-test'],
outputters: [
require('@proxy-figma-export/output-components-as-svg')({
output: './output'
})
]
}],
]
}
output
is mandatory.
getDirname
and getBasename
are optional.
const path = require('path');
...
require('@proxy-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 @proxy-figma-export/output-components-as-svg receives a total of 2 weekly downloads. As such, @proxy-figma-export/output-components-as-svg popularity was classified as not popular.
We found that @proxy-figma-export/output-components-as-svg 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.