lib/utils/to-screaming-snake-case.ps1
function ToScreamingSnakeCase() { param ( [Parameter(Mandatory=$true, Position=0, ValueFromPipeline = $true)] [ValidateNotNull()] [String[]] $value ) BEGIN { $str = ""; } PROCESS { $str += $($value.ToUpper() + "_") } END { return $str.Substring(0, $str.Length - 1) } } |