@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