DotEnvParser

Parser for .env format files.

Supports:

  • KEY=value pairs, one per line

  • Quoted string values (single and double quotes)

  • Inline comments prefixed with # (only outside quotes)

  • Blank lines and comment-only lines (skipped)

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun parse(content: String, filePath: String, environmentName: String): ParseResult<EnvironmentConfig>

Parses the content of an environment file into an EnvironmentConfig.

Link copied to clipboard
open override fun print(config: EnvironmentConfig): String

Prints an EnvironmentConfig back into the file format string representation.