Convert Figma to html format json
yarn add figon
import figon from "figon";
figon(TOKEN, FILE).then((response) => console.log(response));
$a.class1.class2[data1=a,data2=b]
{
"tagName": "a",
"classList": ["class1", "class2"],
"dataset": {
"data1": "a",
"data2": "b"
},
...more
}