Skip to content

feature: ENV-Variable support would be awesome #142

@typoworx-de

Description

@typoworx-de

I'm rarely searching for a node-yaml parser that can handle env-variables and variable-substitutes:

myvar: bar

config:
   foo1: ${bar}
   foo2: ${env: MY_GLOBAL_VAR}

Demo:
MY_GLOBAL_VAR=Hello node .

resulting in:

{
    myvar: "bar"
    config: {
        foo1: "bar"
        foo2: "Hello"
    }
}

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