Skip to content

About

Nexion Plugin: dotenv

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

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

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages