Socket
Book a DemoInstallSign in
Socket

vite-plugin-fathom

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-fathom

Vite plugin for adding fathom

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
255
160.2%
Maintainers
1
Weekly downloads
 
Created
Source

vite-plugin-fathom

A small vite plugin to inject the fathom script on your html page.

Usage

Add the plugin to your vite config. The fathom site id will be loaded from the VITE_FATHOM_ID environment variable by default.

// vite.config.js
import { defineConfig } from "vite";
import vitePluginFathom from "vite-plugin-fathom"

export default defineConfig({
  plugins: [vitePluginFathom()],
});

If your want, you can specify the site ID and options:

// vite.config.js
import { defineConfig } from "vite";
import vitePluginFathom from "vite-plugin-fathom"

export default defineConfig({
  plugins: [vitePluginFathom("ABCDEF", { forceEU: true })],
});

Options

OptionTypeDefault
forceEUbooleanfalse
spaboolean or string"auto"
honorDNTbooleanfalse
autoTrackbooleanfalse
ignoreCanonicalbooleanfalse

For an explanation of these settings, see fathom's documentation.

Keywords

vite

FAQs

Package last updated on 03 Apr 2025

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.