@zemd/figma-rest-api
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@zemd/figma-rest-api

This is a Figma API implementation for javascript projects.

Installation

bun install @zemd/figma-rest-api
npm install @zemd/figma-rest-api
yarn install @zemd/figma-rest-api
pnpm install @zemd/figma-rest-api

Usage

import { figma } from "@zemd/figma-rest-api";

const client = figma("your-figma-token");
const response = await client.files.getFile("filekey");
console.log(await response.json());

Advanced usage

There might be cases when the library was not updated to the latest version of the Figma API, or you want to use some experimental features. In this case, you can construct your own api call using the essentials of the library.

Since the library is built on top of @zemd/http-client you can compose different configurations together.

License

@zemd/figma-rest-api released under the Apache 2.0 license

Donate

Readme

Keywords

none

Package Sidebar

Install

npm i @zemd/figma-rest-api

Weekly Downloads

0

Version

1.0.1

License

Apache-2.0

Unpacked Size

93.7 kB

Total Files

29

Last publish

Collaborators

  • hunterman