Skip to content

nexion-one/plugin-dotenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotenv Validator

Plugin for Nexion that validates .env files against example templates, detecting missing variables and showing env var status in a sidebar panel.

Features

  • Auto-detect template — searches for .env.dist, .env.example, .env.sample, .env.template
  • Robust parsing — handles comments, quoted values, and KEY=VALUE format
  • Full validation — categorizes variables as:
    • ❌ Missing (in example but not in .env)
    • ✅ Present (correctly set)
    • ∅ Empty/default (empty or same as example)
    • ➕ Extra (in .env but not in example)
  • Sidebar panel — visual display with status indicators
  • Diff command — detailed comparison in a modal window
  • Auto-create — creates .env by copying from template on demand
  • Project open hook — auto-validates on project open with warning if variables are missing

Commands

Command Description
dotenv.validate Manually validate the .env file
dotenv.diff Show differences between .env and template
dotenv.create Create .env from the example file

Requirements

  • A template file (.env.example, .env.dist, .env.sample, or .env.template) in the project root

Permissions

  • filesystem.read — to read .env files
  • process.spawn — to copy the template file

About

Nexion Plugin: dotenv

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors