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);
})();