Skip to content

Remove comments while parsing/Support inline comments #484

@JaneJeon

Description

@JaneJeon

In VSCode, when you install the dotenv extension, it greys out sections following a hashtag, e.g.:

SOME_VAR=HELLO # explanation of SOME_VAR, or why it's assigned the value HELLO
               ^--------------------this part is greyed out------------------^

However, dotenv the package does not respect that. In fact, I often got burned by the fact that dotenv just straight up includes the comments in the actual value for the environment variable, which is super unintuitive.

I'd love it if I could have inline comments without fear of screwing up the environment variables.

Love the work you're doing,
thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions