NaN Producing Misery

    figma-api-exporter
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.2 • Public • Published

    Figma API Exporter

    Allows you to export assets from Figma files automatically and use it in your project.

    Features:

    • download all components as SVGs from Figma file or Frame

    Examples

    const figmaApiExporter = require('figma-api-exporter').default;
     
    const exporter = figmaApiExporter(YOUR_FIGMA_API_TOKEN);
     
    exporter
      .getSvgs({
        fileId: YOUR_FIGMA_FILE_ID,
        canvas: 'Icons',
      })
      .then(svgsData =>
        exporter.downloadSvgs({
          saveDirectory: './svgsFiles',
          svgsData: svgsData.svgs,
          lastModified: svgsData.lastModified,
        })
      );

    Keywords

    none

    Install

    npm i figma-api-exporter

    DownloadsWeekly Downloads

    2,406

    Version

    0.0.2

    License

    none

    Unpacked Size

    14.7 kB

    Total Files

    12

    Last publish

    Collaborators

    • slawkolodziej