Skip to content

Latest commit

 

History

History
19 lines (10 loc) · 490 Bytes

README.md

File metadata and controls

19 lines (10 loc) · 490 Bytes

PSdotenv

This script is used for loading environment variables into your powershell script. It does so by parsing a txt file by line and then separating variables from values via a '=' delimiter

Getting started

The file needs to be named .env and be in the root script directory In the file put one variable per line using the following syntax

VariableName=value

Within your script you can use the function like

$(.env "VariableName")

Which would return the value