MCPcopy Index your code
hub / github.com/figma/plugin-samples / exportToJSON

Function exportToJSON

variables-import-export/code.js:127–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125}
126
127async function exportToJSON() {
128 const collections = await figma.variables.getLocalVariableCollectionsAsync();
129 const files = [];
130 for (const collection of collections) {
131 files.push(...(await processCollection(collection)));
132 }
133 figma.ui.postMessage({ type: "EXPORT_RESULT", files });
134}
135
136async function processCollection({ name, modes, variableIds }) {
137 const files = [];

Callers 1

code.jsFile · 0.85

Calls 1

processCollectionFunction · 0.85

Tested by

no test coverage detected