figma-api-stub

0.0.56 • Public • Published

Figma API Stub

npm version CircleCI

A stub implementation of Figma Plugins API.

import {createFigma} from "figma-api-stub";

const figma = createFigma();
const rect = figma.createRectangle();
rect.resize(100, 200);

⚠️ Warning! It's not an official implementation, and it hasn't the purpose to fully reproduce Figma behavior and API.


Installation

Install it with yarn:

yarn add figma-api-stub

Or with npm:

npm i figma-api-stub --save

API

Stub api creation

createFigma(): PluginAPI

Used by

Readme

Keywords

Package Sidebar

Install

npm i figma-api-stub

Weekly Downloads

276

Version

0.0.56

License

MIT

Unpacked Size

115 kB

Total Files

30

Last publish

Collaborators

  • ilyalesik
  • losyear