Skip to content
PluginStats

unplugin-info weekly downloads statistics

By yjl9903 · npm · Vite plugins

Export build information as virutal module

View on npm Fresh · Dec 6, 2026

unplugin-info has 16,258 recorded weekly downloads on npm, an increase of 8.9% over the past 30 days, ranking #1109 of 3,247 tracked listings.

Weekly downloads
16,258
Official API · Dec 5, 2026
7-day growth
+43.5%
+4.9K weekly downloads
30-day growth
+8.9%
+1.3K weekly downloads
90-day growth
+32.6%
+4K weekly downloads
Rank
#1109
▲ 86 in 7 days

About unplugin-info

unplugin-info

Demo version install size GitHub License CI

Export build information as virutal module.

This plugin helps you add build timestamp / commit SHA / CI environment / package.json / ... to your application. So you can easily check whether the production version meets your expectations, or config your application.

Migration from v0 to v1

  • Move git related information from ~build/info to ~build/git
  • Move CI related information from ~build/info to ~build/ci
  • Remove commitsSinceLastTag from ~build/git

Installation

npm i -D unplugin-info
<details> <summary>Vite</summary><br>
// vite.config.ts

import Info from 'unplugin-info/vite';

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

Full example is located at examples/vite.

<br></details>

<details> <summary>Rollup</summary><br>
// rollup.config.js

import Info from 'unplugin-info/rollup';

export default {
  plugins: [
    Info()
  ]
};

<br></details>

<details> <summary>Rspack</summary><br>
// rspack.config.js

module.exports = {
  /* ... */
  plugins: [
    require('unplugin-info/rspack')()
  ]
};

Full example is located at examples/rspack.

<br></details>

<details> <summary>Webpack</summary><br>
// webpack.config.js

module.exports = {
  /* ... */
  plugins: [
    require('unplugin-info/webpack')()
  ]
};

Full example is located at examples/webpack.

<br></details>

<details> <summary>Nuxt</summary><br>
// nuxt.config.ts

export default defineNuxtConfig({
  modules: ['unplugin-info/nuxt'],
  info: {
    // Your unplugin-info options ...
  }
});

Full example is located at examples/nuxt.

<br></details>

<details> <summary>Vue CLI</summary><br>
// vue.config.js

module.exports = {
  configureWebpack: {
    plugins: [
      require('unplugin-info/webpack')()
    ]
  }
};

<br></details>

<details> <summary>Quasar</summary><br>
// quasar.conf.js [Vite]
module.exports = {
  vitePlugins: [
    [
      'unplugin-info/vite',
      {
        /* options */
      }
    ]
  ]
};
// quasar.conf.js [Webpack]
const Info = require('unplugin-info/webpack');

module.exports = {
  build: {
    chainWebpack(chain) {
      chain.plugin('unplugin-info').use(
        Info()
      );
    }
  }
};

<br></details>

<details> <summary>esbuild</summary><br>
// esbuild.config.js
import { build } from 'esbuild';

build({
  /* ... */
  plugins: [
    require('unplugin-info/esbuild')({
      /* options */
    }),
  ],
});

<br></details>

<details> <summary>Astro</summary><br>
// astro.config.mjs

import Info from 'unplugin-info/astro';

export default defineConfig({
  integrations: [
    Info()
  ],
});

<br></details>

TypeScript

To make the TypeScript work, you can add unplugin-info/client to your corresponding tsconfig.json.

{
  "compilerOptions": {
    // ...
    "types": [
      "unplugin-info/client"
    ],
  },
  // ...
}

Or you can add TypeScript triple-slash directives to your .d.ts (i.e. for projects initialized by Vite, it may be src/env.d.ts).

// Your .d.ts file

/// <reference types="unplugin-info/client" />

Or if you did some advanced modification (see below), you can just copy and paste client.d.ts to your project, and then do anything you want.

Usage

unplugin-info creates several virtual modules, ~build/time, ~build/git, ~build/ci, ~build/console, ~build/meta, ~build/env, and ~build/package.

You can just import these modules as usual, and do anything with them. Common use cases may be like:

// main.ts

import now from '~build/time'
import { sha } from '~build/git'

// console log the build info
console.log(`Build ${sha} at ${now}`)
// App.tsx

import now from '~build/time'

// Render it in your app
function App() {
  return <span>{now.toLocaleString()}</span>
}
~build/time

It exports the timestamp when the vite started.

import now from '~build/time'

console.log(now)
// There will be a log like "Fri Jun 24 2022 16:30:30 GMT+0800 (中国标准时间)"
~build/git

It exports the infomation about the current git repo, which is powered by simple-git.

import {
  github,
  sha,
  abbreviatedSha,
  tag,
  lastTag,
  committer,
  committerEmail,
  committerDate,
  author,
  authorEmail,
  authorDate,
  commitMessage
} from '~build/git';

// ...

[!NOTE]

From unplugin-info@0.6.0, the original virtual module called ~build/info will be renamed to ~build/git, and the CI/CD related information will be moved to another virtual module called ~build/ci.

You can even custom or override the exported git information.…

Description from the npm listing.

  • debug
  • config
  • unplugin
  • build
  • vite
  • vite-plugin
  • webpack
  • rspack
  • git
  • CI

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

unplugin-info weekly downloads on npm, last 90 days: 16,258 weekly downloads as of Dec 5, 2026, +32.6% over 90 days.unplugin-infoWeekly downloads on npm · Last 90 days16,258downloads / week+32.6% over 90 days02K4K6K8K10K12K14K16K18KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
unplugin-info weekly downloads on npm, last 90 days: 16,258 weekly downloads as of Dec 5, 2026, +32.6% over 90 days.

7/30/90-day growth

unplugin-info weekly downloads growth on npm: +43.5% over 7 days, +8.9% over 30 days, +32.6% over 90 days.unplugin-infoWeekly downloads growth on npm16,258downloads / week now7-day growth+4,928 weekly downloads+43.5%30-day growth+1,327 weekly downloads+8.9%90-day growth+4,001 weekly downloads+32.6%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
unplugin-info weekly downloads growth on npm: +43.5% over 7 days, +8.9% over 30 days, +32.6% over 90 days.

Ranking history

unplugin-info npm ranking history: currently #1109 (by weekly downloads).unplugin-infonpm ranking · by weekly downloads · Last 90 days#1109current rank#400#600#800#1000#1200#1400Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 45 observations · Updated Dec 5, 2026pluginstats.com
unplugin-info npm ranking history: currently #1109 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 56, #9 (overall #1,109)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins300 listings · 15 pages · page 10, #12 (overall #192)
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 (591)
Recent weekly downloads observations for unplugin-info
Date (UTC)Weekly downloadsChange vs. previous
16,258-154
16,412+511
15,901+1.1K
14,851+1.7K
13,152+613
12,539+227
12,312+982
11,330+292
11,038-197
11,235-417
11,652+159
11,493+817
10,676-212
10,888—

Similar npm Vite plugins plugins

All 20 unplugin-info 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/unplugin-info. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.