Socket
Book a DemoInstallSign in
Socket

figma-library-analytics

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

figma-library-analytics

Figma library analytics.

1.0.2
latest
npmnpm
Version published
Maintainers
1
Created
Source

Figma Library Analytics

For the enterprise plan only :/

Installation

npm i figma-library-analytics

Create a .env

FIGMA_ACCESS_TOKEN=your_figma_access_token
FILE_KEY=your_figma_file_key
START_DATE=YYYY-MM-DD
END_DATE=YYYY-MM-DD

Usage

As a module

import { libraryAnalytics } from 'figma-library-analytics';

async function runAnalytics() {
  try {
    await libraryAnalytics();
    console.log('Reports generated successfully!');
  } catch (error) {
    console.error('Error generating reports:', error);
  }
}

runAnalytics();

As a CLI tool

figma-library-analytics

Output

Generated in the output directory

  • actions_by_component.csv — Actions (detachments and insertions) grouped by component.
  • actions_by_team.csv — Actions grouped by team.
  • usages_by_component.csv — Component usage statistics.
  • usages_by_file.csv — Component usage grouped by file.

Keywords

figma

FAQs

Package last updated on 15 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.