nowfound

Life & fun · April 28, 2024

Dotenv, if it is a Unix utility

I like the idea of using dotenv files, but I dislike having to use different language-specific libraries to read them. To solve this, I created a small utility that lets you prefix any command with "dotenv" to load the ".env" file. This is how I imagine dotenv would work if it had started as a UNIX utility rather than a Node.js library.

Dotenv, if it is a Unix utility launched on April 28, 2024 with 225 votes, #207 of 4,347 launches that month and more than 95% of that year's launches. The site was still online in September 2026, 2 years on.

Visit github.com ↗Alternativestop 5% of April 2024

In plain words

Dotenv is a Unix command-line utility that loads environment variables from a .env file before executing any command. Instead of relying on language-specific libraries, users prefix their commands with "dotenv" to automatically load configuration values. It provides a unified approach to managing environment variables across different programming languages and tools, following Unix philosophy principles.

written from the facts on this page · September 2026

From the sources

Standalone, language agnostic dotenv. Contribute to gyf304/dotenv development by creating an account on GitHub.

Does a similar job

all alternatives →
  • From dotenv to dotenvx – better config management2024 · dotenvx.com · ▲354

    A leap forward in configuration management for dotenv

  • Sendenv, a CLI tool to share environment variables2024 · github.com · ▲83

    My weekend project sendenv is a CLI tool that lets you share environment variables securely with someone else. It is built on top of magic-wormhole which allows for safe, account-free data transfer. When you send variables using sendenv, it creates a one-time code. You give this code to the person who needs the variables. They use the code in their shell to load the variables. This is handy for quickly setting up new team members or copying local environment variables to another system. Its currently in alpha obviously, but the core functionality works (I have tested sending vaults from a…

  • Dotenv-Diff v3.0.0Jul 2026 · github.com · ▲17

    Since last time i posted about dotenv-diff a few things has improved - “did you mean” type suggestions - comment warnings flag (every key in your .env.example must have a #comment above or next to the key) -now whenever you run dotenv-diff it will warn you about difference in you example file if its run against your .env file -catch secret keys that you definitely dont want in your example file -smaller bug fixes

  • Dotenv Mask Editor: No more embarrassing screen leaks of your .envJan 2026 · marketplace.visualstudio.com · ▲28

    Hi HN, I built this because I often work in coworking spaces or do screen sharing, and I've always had this fear of accidentally flashing my .env file with production secrets to the whole room (or recording). It’s a simple VS Code extension that opens .env files in a custom grid editor. It automatically masks any value longer than 6 characters so I can safely open the file to check keys without exposing the actual secrets. It runs 100% locally with zero dependencies (I know how sensitive these files are). It just reads the file, renders the grid, and saves it back as standard text. It's open…

  • A better dotenv – dotenvx2024 · github.com · ▲8

    I'm the creator of node.js' dotenv. I'm making a better dotenv called dotenvx. * run anywhere (cross-platform) * multi-environment * encrypted envs What do you think?

  • Envelope – A modern environment variable cli tool2024 · github.com · ▲103

    Hey HN! I've built this cli tool to manage env variables of a project, but mostly for fun and to try out Rust and the clap crate. I had this idea when I made a big mistake and broke some production stuff because I had a very messy .env file laying around in my project. I was implementing new features for one of my projects and in my .env file I had the test database url commented out and the production one was not. Long story short, I applied migrations to the production database instead of my local test one and broke a lot of production APIs :') I wanted a tool that could easily help me…

More life & fun this month

the category →

Source: Show HN post ↗

Launched alongside, April 2024

the whole month →
  • Supabase▲2,325

    The Postgres developer platform is now generally available

    Dev tools · 2024 · supabase.com

  • Build your pixel-perfect booking experience with Atoms

    Dev tools · 2024 · cal.com

  • PaddleBoat▲1,162

    Perfect your sales pitch with realistic AI roleplays

    AI · 2024 · padboat.com

  • deco.cx 2.0▲1,078

    Build web apps 10x faster with Deno, JSX, TS & Tailwind

    Dev tools · 2024 · decocms.com

  • IXORD AI▲955

    Navigate tasks, ignite creativity

    AI · 2024

  • A central nervous system for all your productivity apps

    AI · 2024 · getassista.com