New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@varlock/vite-integration

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@varlock/vite-integration

Vite plugin to use varlock for .env file loading - adds validation, type-safety, and extra security features

latest
Source
npmnpm
Version
0.2.9
Version published
Weekly downloads
3.1K
-11.37%
Maintainers
2
Weekly downloads
 
Created
Source

@varlock/vite-integration

This package helps you integrate varlock into a Vite-powered project.

It is designed as a Vite plugin, which will override Vite's default .env file loading logic, and instead use varlock.

Compared to the default Vite behavior, this package provides:

  • validation of your env vars against your .env.schema
  • type-generation and type-safe env var access with built-in docs
  • redaction of sensitive from logs during build time
  • more flexible multi-env handling, rather than relying on the --mode flag

See our docs site for complete installation and usage instructions.

Some web frameworks use Vite and have their own plugins to enable very complex client/server hybrid rendering, or complex build processes. This plugin is designed to work with simple vanilla Vite projects, and complex framework powered projects. While this plugin should work with most frameworks, so far it has specifically been tested with:

Keywords

varlock

FAQs

Package last updated on 02 Apr 2026

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