0.2.3 • Published 2 years ago

@design-automata/node-figma v0.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago