
Product
Introducing Pull Request Stories to Help Security Teams Track Supply Chain Risks
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
figma-tokens-converter-cli
Advanced tools
A CLI with utilities to simplify the process of Figma Design Tokens to Frontend.
A CLI with utilities to simplify the process of Figma Design Tokens to Frontend.
In order to install it on your system simply run
yarn add figma-tokens-converter-cli
For convinience i made an example that you can see here The example is how the cli can work on a project.
By running the command as a cli on your terminal you can see the options and arguments needed You can define help for each utility as well
$ figma-tokens-converter-cli --help
$ figma-tokens-converter-cli parseFigmaTokens --help
$ figma-tokens-converter-cli parseJsonToCode --help
This utility grabs all the properties from your .json file and export them to the output path specified. There are options to further expand some properties to from one file to several or specify only some properties.
Properties
name | type | option | description |
---|---|---|---|
input | string | The input of the .json figma file | |
output | string | Output directory to write the converted results | |
pick | string | -p, --pick | Specify in comma separated format the properties to pick - Optional |
expand | string | -e, --expand | Specify in comma separated format the properties to expand in more files |
outputExtension | string | -oe, --outputExtension | The output file extension that must be transformed to. Defaults to json (default: "json") |
This utility parse a directory of json files and converts them to code. By default it transforms them to TS files but you can also specify JS files.
Properties
name | type | option | description |
---|---|---|---|
input | string | The input directory | |
output | string | Output directory to write the converted results | |
outputExtension | string | -oe, --outputExtension | The output file extension that must be transformed to. Defaults to json (default: "json") |
FAQs
A CLI with utilities to simplify the process of Figma Design Tokens to Frontend.
We found that figma-tokens-converter-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.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.