Skip to content

VitalProject/PSdotenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published