vite-plugin-env-compatible weekly downloads statistics
By IndexXuan · npm · Vite plugins
Environment Variables Compatible
vite-plugin-env-compatible has 174,722 recorded weekly downloads on npm, an increase of 13.3% over the past 30 days, ranking #546 of 3,247 tracked listings.
About vite-plugin-env-compatible
vite-plugin-env-compatible
<p align="center"> <img alt="wakatime" src="https://wakatime.com/badge/github/IndexXuan/vite-plugin-env-compatible.svg" /> <a href="https://github.com/IndexXuan/vite-plugin-env-compatible/actions/workflows/npm-publish.yml"> <img alt="NPM Publish" src="https://github.com/IndexXuan/vite-plugin-env-compatible/actions/workflows/npm-publish.yml/badge.svg" style="max-width:100%;"> </a> <a href="https://www.npmjs.com/package/vite-plugin-env-compatible" rel="nofollow"> <img alt="downloads" src="https://img.shields.io/npm/dt/vite-plugin-env-compatible.svg"> </a> <a href="https://www.npmjs.com/package/vite-plugin-env-compatible" rel="nofollow"> <img alt="npm version" src="https://img.shields.io/npm/v/vite-plugin-env-compatible.svg" style="max-width:100%;"> </a> <a href="https://github.com/IndexXuan/vite-plugin-env-compatible/blob/main/LICENSE"> <img alt="License: MIT" src="https://img.shields.io/badge/License-MIT-yellow.svg" style="max-width:100%;"> </a> </p>inject to process.env like vue-cli or create-react-app and also define client
process.env.XXXfor you.
Motivation
viteexpose env toimport.meta.env.PREFIX_XXX, but not loaded to process.env like vue-cli or create-react-app.this plugin support setting prefix like(support by vite@2.5.1).VUE_APP_orREACT_APP_and loaded to process.env- built-in with vue-cli-plugin-vite just for compatibility.
Usage
yarn add vite-plugin-env-compatible
// vite.config.ts
import env from 'vite-plugin-env-compatible'
// @see https://vitejs.dev/config/
export default defineConfig({
plugins: [
// ...other plugins
env(/* options */)
],
})
Options
Underlying
- dotenv & dotenv-expand
- vite
Further
Description from the npm listing.
- vite-plugin
- dot-env
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
7/30/90-day growth
Ranking history
Listing placement
Listing placement
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 (170)Similar npm Vite plugins plugins
All 20 vite-plugin-env-compatible alternativesData 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-env-compatible. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.