Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Powershell wrapper for Yaml.Net
branch: master

This branch is 15 commits behind scottmuc:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Functions
Libs
.gitmodules
PowerYaml.Tests.ps1
PowerYaml.psm1
README.md

README.md

PowerYaml

PowerYaml is a wrapper around Yaml.Net library which is the best .Net Yaml parser I've found so far.

Sample

Paste the following into a sample.yml file

parent: 
  child:
    a: a value
    b: b value
    c: c value
  child2: 
    key4: value 4
    key5: value 5

And here's the parsing of the above yaml

PS C:\dev\PowerYaml> Import-Module .\PowerYaml.psm1
PS C:\dev\PowerYaml> $yaml = Get-Yaml (Resolve-Path .\sample.yml)
PS C:\dev\PowerYaml> $yaml.parent.child

Name                           Value
----                           -----
a                              a value
b                              b value
c                              c value
Something went wrong with that request. Please try again.