reelwise-dotenv

Dependency-free .env reader for Lua

$ luarocks install reelwise-dotenv

A tiny, dependency-free .env reader for Lua 5.1+/LuaJIT. One pure-Lua file.
Parses KEY=VALUE lines into a table; handles `export ` prefixes, whole-line
and inline `#` comments, and single/double quotes with escape sequences.
dotenv.get(key, default) falls back to os.getenv. Missing file returns an
empty table unless strict=true.

Versions

0.1-19 hours ago0 downloads

Dependencies

lua >= 5.1

Manifests