JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 44
  • Score
    100M100P100Q60830F
  • License MIT

A security-first CLI for environment variable management with AES-256 encryption, secret scanning, health diagnostics, auto-backups, and safe sync.

Package Exports

  • @fronik/envman
  • @fronik/envman/bin/envman.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@fronik/envman) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

🛡️ Envman

npm downloads license ci

An elite, security-first CLI for environment variable management. Envman provides AES-256 encryption, hardcoded secret scanning, deep health diagnostics, auto-backups, and safe synchronization perfectly suited for modern Node.js and full-stack projects.

🚀 Installation

Install globally to use anywhere:

npm install -g @fronik/envman

⚡ Quick Start

Initialize envman in your project:

envman init

Launch the interactive menu:

envman

🔥 Core Features

1. Interactive Menu

Just type envman to open a full-featured, numbered interactive menu for a superior developer experience.

2. Secret Scanning (envman scan)

Automatically detect hardcoded secrets (AWS Keys, JWTs, Stripe, GitHub Tokens, Database credentials) in your codebase before you commit them.

3. Environment Doctor (envman doctor)

Run deep diagnostics on your .env file! Detects weak passwords, empty values, missing .gitignore entries, duplicate keys, and stale backups.

4. AES-256 Encryption (envman encrypt & envman decrypt)

Securely encrypt your .env file using AES-256-CBC with HMAC authentication. Safe to share with teammates or store in secure vaults.

5. Safe Synchronization (envman sync)

Deploying or managing monorepos? Safely sync your .env file across folders without losing distinct settings.

🛠️ CLI Commands

Command Description
envman Launch the interactive menu
envman init Generate .env, .env.example, .envmanrc (Encryption Key) & .gitignore rules
envman add KEY=value Securely append or update an environment variable
envman list Table view of .env variables (sensitive values masked by default)
envman scan Scan project directory for hardcoded secrets
envman doctor Health check for your .env ecosystem
envman encrypt Encrypt .env into .env.enc
envman decrypt Decrypt .env.enc into .env
envman sync --to <path> Sync .env into another directory safely

📸 Demo

Envman Interactive Demo

🛡️ Security Guarantees

  • Zero Footprint: Values are kept exclusively local unless you encrypt them.
  • Auto-Backups: Destructive actions (add, remove, sync, encrypt) automatically create timestamped backups in .envman-backups/.
  • State of the Art Scanning: RegEx engines tune perfectly to uncover the most critical keys out there.

🤝 Contributing

We love contributions! Please read our CONTRIBUTING.md and CODE_OF_CONDUCT.md.

📄 License

MIT © fronik