Socket
Socket
Sign inDemoInstall

amiga

Package Overview
Dependencies
165
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    amiga

Convert SVG to JSON using Figma, Sketch, or a folder of SVGs.


Version published
Weekly downloads
4
increased by100%
Maintainers
1
Install size
9.33 MB
Created
Weekly downloads
 

Readme

Source

amiga

Export JSON from SVGs.

Install

yarn add amiga --dev

npm install amiga --save-dev

Figma

Setup

  1. Generate a personal access token for the Figma API
  2. Create a .env file with your access token
    • FIGMA_TOKEN=<personal-access-token>
    • Alternatively add an environment variable for FIGMA_TOKEN in your npm script
  3. You can now use amiga figma <figma-file-id> to generate a JSON file from all components

Options

    --name        name of the generated JSON file
    --out-dir     output directory (defaults to cwd)
    --camel-case  camelCase all props
    --blacklist   exclude props in a space separated list

Sketch

Coming soon!

Thanks

This project is built on the shoulders of giants and wouldn't be possible without an amazing community. Huge thanks to the following people:

FAQs

Last updated on 29 Jul 2018

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc