2.0.3 • Published 3 months ago

figma-rest v2.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
3 months ago

figma-rest

Node and browser client for Figma REST API

Install

npm i figma-rest
yarn add figma-rest
pnpm i figma-rest

Usage

import { FigmaClient } from 'figma-api'

const figma = new FigmaClient({
  personalAccessToken: 'fig123',
})

const file = await figma.files.get('file_key')

Pagination

Some of Figma's endpoints that contain long lists are paginated.

The client provides an AsyncIterableIterator that you can for await...of each item in the list:

let reactions: Reaction[] = []
for await (let reaction of client.comments.reactions('123', '456')) {
  reactions.push(reaction)
}
3.0.0

3 months ago

3.0.0-beta.1

3 months ago

2.0.3

5 months ago

2.0.2

5 months ago

2.0.1

5 months ago

0.2.0

5 months ago