Socket
Socket
Sign inDemoInstall

@design-automata/node-figma

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @design-automata/node-figma

Zero-dependency wrapper around the Figma API for Node.js


Version published
Weekly downloads
1
Maintainers
1
Install size
5.88 kB
Created
Weekly downloads
 

Readme

Source

node-figma

Zero-dependency wrapper around the Figma API for Node.js.

Getting started

Grab the lib:

npm i @design-automata/node-figma

Export your Figma PAT in your environment variables before proceeding.

export FIGMA_PAT="your_figma_pat"

Import and use:

const { getFile } = require('@design-automata/node-figma')

// ES6
import { getFile } from '@design-automata/node-figma'

Supported API

getFile(fileId: string, optionalParams?: getFileOptionalParams)

getFileNodes(fileId: string, nodeIds: string, optionalParams?: getFileNodesOptionalParams)

getFileImages(fileId: string, nodeIds: string, optionalParams?: getFileImagessOptionalParams)

getFileStyles(fileId: string)

getTeamStyles(teamId: string, optionalParams?: getTeamStylesOptionalParams)

Types

Keywords

FAQs

Last updated on 30 Aug 2022

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