Skip to content
PluginStats

vite-plugin-version-mark weekly downloads statistics

By ZhongxuYang · npm · Vite plugins

A Vite/Nuxt plugin that automatically injects version information (package.json version, git commit SHA, or custom commands) into your application via console, global variables, meta tags, and static files.

View on npm Fresh · Oct 28, 2026

vite-plugin-version-mark has 2,265 recorded weekly downloads on npm, ranking #1272 of 2,644 tracked listings.

Weekly downloads
2,265
Official API · Oct 26, 2026
7-day growth
—
Insufficient history
30-day growth
—
Insufficient history
90-day growth
—
Insufficient history
Rank
#1272
Among tracked npm listings

About vite-plugin-version-mark

<div style="text-align: right;">

中文 | English

</div>

vite-plugin-version-mark

A Vite/Nuxt plugin that automatically injects version information (package.json version, git commit SHA, or custom commands) into your application via console, global variables, meta tags, and static files.

<div align="center"> <a href="https://github.com/ZhongxuYang/vite-plugin-version-mark/tree/main"> <img src="https://raw.githubusercontent.com/ZhongxuYang/images/dev/common/version.svg" width="300px" height="100px" /> </a> </div> <div align="center">

[![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![types][types-src]][types-href] [![License][license-src]][license-href]

[![Vite][vite-src]][vite-href] [![Nuxt][nuxt-src]][nuxt-href]

[![Awesome][awesome-src]][awesome-href]

</div>

Example

Install

pnpm add -D vite-plugin-version-mark
# OR yarn add -D vite-plugin-version-mark
# OR npm install -D vite-plugin-version-mark

Usage

Vite
// vite.config.ts
import { defineConfig } from "vite";
import { vitePluginVersionMark } from "vite-plugin-version-mark";

export default defineConfig({
  plugins: [
    vitePluginVersionMark({
      // name: 'test-app',
      // version: '0.0.1',
      // command: 'git describe --tags',
      // outputFile: true,
      // ifGitSHA: true,
      ifShortSHA: true,
      ifMeta: true,
      ifLog: true,
      ifGlobal: true,
    }),
  ],
});
Nuxt3+
// nuxt.config.ts
export default defineNuxtConfig({
  modules: [
    [
      "vite-plugin-version-mark/nuxt",
      {
        // name: 'test-app',
        // version: '0.0.1',
        // command: 'git describe --tags',
        // outputFile: true,
        // ifGitSHA: true,
        ifShortSHA: true,
        ifMeta: true,
        ifLog: true,
        ifGlobal: true,
      },
    ],
  ],
});

Then you can use vite-plugin-version-mark ! 🎉

🚀 What's New in v0.2.0: Multi-command support! Now you can execute multiple git commands and combine their results with custom formats. Perfect for creating version strings like "main-abc1234" or "v1.0.0-main-abc1234". See examples below ⬇️

Config

vite-plugin-version-mark can be print application version in the Console, defined global or add <meta> in HTML element.

NameDescriptionTypeDefaultSupported
nameapplication namestringname in package.json0.0.1+
versionapplication versionstringversion in package.json0.0.1+
ifGitSHAuse git commit SHA as the versionbooleanfalse0.0.1+
ifShortSHAuse git commit short SHA as the versionbooleanfalse0.0.1+
commandprovide a custom command to retrieve the version <br/>New: Now supports multiple commands! <br/>For example: git describe --tags or { commands: ['git branch --show-current', 'git rev-parse --short HEAD'], format: '{0}-{1}' }string | MultiCommandOptionsgit rev-parse --short HEAD0.0.8+
ifLogprint info in the Consolebooleantrue0.0.1+
ifGlobalset a variable named `__${APPNAME}_VERSION__` in the window<br/>For TypeScript users, make sure to add the type declarations in the env.d.ts or vite-env.d.ts file to get type checks and Intellisense.booleantrue0.0.4+
ifMetaadd <meta name="application-name" content="{APPNAME_VERSION}: {version}"> in the <head>…

Description from the npm listing.

  • vite
  • version
  • vue
  • nuxt
  • react
  • git
  • commit
  • log
  • plugin
  • vite-plugin

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

vite-plugin-version-mark weekly downloads on npm, last 90 days: 2,265 weekly downloads as of Oct 26, 2026.vite-plugin-version-markWeekly downloads on npm · Last 90 days2,265downloads / week2K2.1K2.2K2.3K2.4K2.5KJul 28Aug 12Aug 27Sep 11Sep 26Oct 11Oct 26downloads / weekOct 26, 2026 – Oct 26, 2026 · 1 observations · Updated Oct 26, 2026pluginstats.com
vite-plugin-version-mark weekly downloads on npm, last 90 days: 2,265 weekly downloads as of Oct 26, 2026.

7/30/90-day growth

vite-plugin-version-mark weekly downloads growth on npm: 7-day growth unavailable, 30-day growth unavailable, 90-day growth unavailable.vite-plugin-version-markWeekly downloads growth on npm2,265downloads / week now7-day growthinsufficient historyInsufficient history30-day growthinsufficient historyInsufficient history90-day growthinsufficient historyInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Oct 26, 2026pluginstats.com
vite-plugin-version-mark weekly downloads growth on npm: 7-day growth unavailable, 30-day growth unavailable, 90-day growth unavailable.

Ranking history

vite-plugin-version-mark npm ranking history: currently #1272 (by weekly downloads).vite-plugin-version-marknpm ranking · by weekly downloads · Last 90 days#1272current rank#1270#1271#1272#1273#1274Jul 30Aug 14Aug 29Sep 13Sep 28Oct 13Oct 28rankOct 28, 2026 – Oct 28, 2026 · 1 observations · Updated Oct 26, 2026pluginstats.com
vite-plugin-version-mark npm ranking history: currently #1272 (by weekly downloads).

Listing placement

All npm2,642 listings · 133 pages · 1,322 shown · page 73, #19 (overall #1,459)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins275 listings · 14 pages · page 13, #20 (overall #260)
Vite plugins: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (2)
Recent weekly downloads observations for vite-plugin-version-mark
Date (UTC)Weekly downloadsChange vs. previous
2,265-6.3K
8,586—

Similar npm Vite plugins plugins

All 20 vite-plugin-version-mark alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/vite-plugin-version-mark. First seen Oct 27, 2026; last successful collection Oct 28, 2026. See the methodology.