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 27, 2026 · data Jul 1, 2026

vite-plugin-version-mark has 8,586 recorded weekly downloads on npm.

Weekly downloads
8,586
Official API · Jul 1, 2026
7-day growth
—
Insufficient history
30-day growth
—
Insufficient history
90-day growth
—
Insufficient history
Rank
—
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: 8,586 weekly downloads as of Jul 1, 2026.vite-plugin-version-markWeekly downloads on npm · Last 90 days8,586downloads / weekNo observations recorded in this periodno observations · 0 observations · Updated Jul 1, 2026pluginstats.com
vite-plugin-version-mark weekly downloads on npm, last 90 days: 8,586 weekly downloads as of Jul 1, 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 npm8,586downloads / week now7-day growthinsufficient historyInsufficient history30-day growthinsufficient historyInsufficient history90-day growthinsufficient historyInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Jul 1, 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 has no ranking history on npm yet.vite-plugin-version-marknpm ranking · by weekly downloads · Last 90 daysNo ranking observations in this periodno observations · 0 observations · Updated Jul 1, 2026pluginstats.com
vite-plugin-version-mark has no ranking history on npm yet.

Listing placement

All npm2,577 listings · 129 pages · 1,290 shown · page 53, #18 (overall #1,058)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins272 listings · 14 pages · page 9, #16 (overall #176)
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 (1)
Recent weekly downloads observations for vite-plugin-version-mark
Date (UTC)Weekly downloadsChange vs. previous
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 27, 2026. See the methodology.