Convert-StringCasingStyle¶
SYNOPSIS¶
Convert a string to a different casing style
SYNTAX¶
Convert-StringCasingStyle [-Text] <String> [-To] <String> [-ProgressAction <ActionPreference>]
[<CommonParameters>]
DESCRIPTION¶
This function converts a string to a different casing style.
EXAMPLES¶
EXAMPLE 1¶
'thisIsCamelCase' | Convert-StringCasingStyle -To 'snake_case'
Convert the string 'thisIsCamelCase' to 'this_is_camel_case'
EXAMPLE 2¶
'thisIsCamelCase' | Convert-StringCasingStyle -To 'UPPER_SNAKE_CASE'
Convert the string 'thisIsCamelCase' to 'THIS_IS_CAMEL_CASE'
EXAMPLE 3¶
'thisIsCamelCase' | Convert-StringCasingStyle -To 'kebab-case'
PARAMETERS¶
-Text¶
The string to convert
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-To¶
The casing style to convert the string to
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ProgressAction¶
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters¶
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS¶
OUTPUTS¶
System.String¶
NOTES¶
General notes