Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeff1evesque/psyaml
Identical to Phil-Factor/PSYaml, except without line length restriction
https://github.com/jeff1evesque/psyaml
Last synced: 3 days ago
JSON representation
Identical to Phil-Factor/PSYaml, except without line length restriction
- Host: GitHub
- URL: https://github.com/jeff1evesque/psyaml
- Owner: jeff1evesque
- Created: 2017-07-27T18:15:38.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-27T18:45:50.000Z (over 7 years ago)
- Last Synced: 2024-11-08T06:06:13.419Z (about 2 months ago)
- Language: PowerShell
- Homepage:
- Size: 170 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PSYaml
## Introduction
This module will help users convert from/to YAML. For more information see [the documentation](https://github.com/jeff1evesque/psyaml/blob/master/Documentation.md).**Note:** this repository was forked from [Phil-Factor/PSYaml](https://github.com/Phil-Factor/PSYaml).
## Example Usage
```PowerShell
import-module psyaml
$yaml = @"
anArray:
- 1
- 2
- 3
nested:
array:
- this
- is
- an
- array
hello: world
"@
$YamlObject = ConvertFrom-YAML $yamlString
ConvertTo-YAML $YamlObject
```## Contact Information
Author: Phil-Factor, Brian Marsh, Jeff Levesque## Installation
### One time setup
* Download/clone the repository
* Copy the PSYaml folder to a module path (e.g. `$env:USERPROFILE\Documents\WindowsPowerShell\Modules\`)
* Alternatively, in the PS-PSYaml folder use PSDeploy (`Invoke-PSDeploy -Path .\PSDeploy\`)### Automated Install
* Assuming you have PowerShell v5 and a Nuget Repository configured, use the built in Module management (`Install-Module PSYaml`)## Import the module.
`Import-Module PSYaml #Alternatively, Import-Module \\Path\To\PSYaml`## Get commands in the module
`Get-Command -Module PSYaml`## Get help
`Get-Help ConvertFrom-Yaml -Full`
`Get-Help about_PSYaml`