1
2
3
4
5
6
7
8
9
10
11
12
import { fetchFigmaFile } from "https://esm.town/v/rodrigotello/fetchFigmaFile";
import { parseFigmaURL } from "https://esm.town/v/rodrigotello/parseFigmaURL";
import process from "node:process";
export const FigmaAvatarsMixerTest = (async () => {
const apiToken = process.env.myFigmaAPIToken;
const fileKey =
parseFigmaURL(
"https://www.figma.com/file/XqiternEMTE2Gk8jHzG4Ui/AvatarMixerFileTest?type=design&node-id=0%3A1&mode=design&t=Mpjs48FGMgw77SXW-1",
).key;
return fetchFigmaFile(apiToken, fileKey);
})();
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
October 23, 2023