ORY

Dotenv Parser

Parse .env files (with quotes, escapes, exports, and inline comments) into JSON or shell export.

.env content
LineKeyValueExport
2NODE_ENVproduction
3PORT3000
4DATABASE_URLpostgres://user:p%40ss@localhost:5432/db
5SECRET_KEYabc#123$~
6TRACE1yes
7GREETINGHello world