Skip to content

Load configuration data from multiple file types. Yaml, Toml, PSD1, JSON.

License

Notifications You must be signed in to change notification settings

cdhunt/Import-ConfigData

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Import-ConfigData

Load configuration data from multiple file types. The returned Hashtable should have the same structure regardless of the source format.

Currently supported types:

CI Status

GitHub Workflow Status (with event) Testspace pass ratio PowerShell Gallery

Build history

Install

Install-Module -Name Import-ConfigData or Install-PSResource -Name Import-ConfigData

PowerShell Gallery

Docs

Full Docs

Getting Started

Return an object representing the contents of a PowerShell Data File.

#config.psd1
@{
    DriveName = "data"
}
$config = Import-ConfigData -Path config.psd1
$config.DriveName
data

These config files all return the same PowerShell object.

#config.toml
DriveName = "data"
#config.yml
DriveName: data
{
    "DriveName": "data"
}

About

Load configuration data from multiple file types. Yaml, Toml, PSD1, JSON.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published