Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a naïve parser for .env files #89

Merged
merged 3 commits into from Jan 1, 2022
Merged

Add a naïve parser for .env files #89

merged 3 commits into from Jan 1, 2022

Conversation

peterbourgon
Copy link
Owner

@peterbourgon peterbourgon commented Jan 1, 2022

EnvParser parses .env files.

FOO=bar
DELAY=15s
MULTILINE="strings\nare\nsupported\n"
# Comments are supported. 

The .env file format is not well-defined, so this parser is very conservative. End-of-line comments, export prefixes, variable expansion, etc. are unsupported.

@peterbourgon peterbourgon merged commit 72c982b into main Jan 1, 2022
@peterbourgon peterbourgon mentioned this pull request Jan 1, 2022
@peterbourgon peterbourgon deleted the env-file-parser branch May 25, 2022 20:08
@decke decke mentioned this pull request Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant