@design-automata/node-figma

0.2.3 • Public • Published

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

Dependencies (0)

    Dev Dependencies (5)

    Package Sidebar

    Install

    npm i @design-automata/node-figma

    Weekly Downloads

    1

    Version

    0.2.3

    License

    MIT

    Unpacked Size

    6.02 kB

    Total Files

    7

    Last publish

    Collaborators

    • edisonchee